Skip to content

Commit

Permalink
Merge pull request #45 from gogovan/AN-6007
Browse files Browse the repository at this point in the history
An 6007
  • Loading branch information
ggx-jacechun authored Dec 7, 2023
2 parents 43a88ea + 83963b2 commit 507f7ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions ggvlib/google/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,7 @@ def get_raw_responses_as_df(form_id: str) -> pd.DataFrame:
return_list.append(row["answers"])
col_names = ["responseId", "createTime", "LastSubmittedTime", "answer"]
for val in row["answers"].values():
# for elem in list(val.values()):
# if type(elem) == dict and elem.get("answers"):
# for ans in elem.get("answers"):
# logger.info(ans)
# if "value" in list(ans[0].keys()):
# col_names.append(val["questionId"])
# return_list.append(ans[0]["value"])
for answer in list(val.values())[2].values():
for answer in list(val["textAnswers"].values()):
if "value" in list(answer[0].keys()):
col_names.append(val["questionId"])
return_list.append(answer[0]["value"])
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ggvlib"
version = "0.2.45"
version = "0.2.48"

description = ""
authors = ["Adam Hoffstein <[email protected]>","Jace Chun <[email protected]>"]
Expand Down

0 comments on commit 507f7ed

Please sign in to comment.