Update crs_arena/utils.py
Browse files- crs_arena/utils.py +3 -1
crs_arena/utils.py
CHANGED
@@ -161,7 +161,9 @@ def _upload_feedback_to_gsheet_sync(
|
|
161 |
row: Row to upload to the worksheet.
|
162 |
worksheet: Name of the worksheet to upload the feedback to.
|
163 |
"""
|
164 |
-
gs_connection =
|
|
|
|
|
165 |
df = gs_connection.read(worksheet=worksheet)
|
166 |
if df[df["id"] == row["id"]].empty:
|
167 |
df = pd.concat([df, pd.DataFrame([row])], ignore_index=True)
|
|
|
161 |
row: Row to upload to the worksheet.
|
162 |
worksheet: Name of the worksheet to upload the feedback to.
|
163 |
"""
|
164 |
+
gs_connection = GSheetsServiceAccountClient(
|
165 |
+
ast.literal_eval(st.secrets["gsheet"])
|
166 |
+
)
|
167 |
df = gs_connection.read(worksheet=worksheet)
|
168 |
if df[df["id"] == row["id"]].empty:
|
169 |
df = pd.concat([df, pd.DataFrame([row])], ignore_index=True)
|