Skip to content

Commit

Permalink
asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
Zanger67 committed Jul 26, 2024
1 parent e936125 commit 791b91c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,7 @@
"\n",
" # Usually, x[0] is the question number but the qustionData set might be keyed by the date if it's a daily case\n",
" if sortBy == 'date_done' and type(list(questionData.keys())[0]) == datetime :\n",
" dataframe_array.sort(key=lambda x: x[-1]) \n",
" dataframe_array.sort(key=lambda x: datetime.strptime(x[-1], '%b %d, %Y'))\n",
" else :\n",
" dataframe_array.sort(key=lambda x: questionData.get(x[0])[sortBy])\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ def convertDataToMatrix(questionData: dict,

# Usually, x[0] is the question number but the qustionData set might be keyed by the date if it's a daily case
if sortBy == 'date_done' and type(list(questionData.keys())[0]) == datetime :
dataframe_array.sort(key=lambda x: x[-1])
dataframe_array.sort(key=lambda x: datetime.strptime(x[-1], '%b %d, %Y'))
else :
dataframe_array.sort(key=lambda x: questionData.get(x[0])[sortBy])

Expand Down

0 comments on commit 791b91c

Please sign in to comment.