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 e9d351b commit e936125
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
15 changes: 9 additions & 6 deletions main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
"# Categories besides those in lists\n",
"PRIMARY_CATEGORIES = set(['Daily', 'Weekly Premium', 'Contest', 'Favourite'])\n",
"_oldest_date = datetime.now()\n",
"# _OLDEST_DATE = datetime(2024, 7, 23)"
"# _oldest_date = datetime(2024, 7, 23)"
]
},
{
Expand Down Expand Up @@ -758,14 +758,17 @@
"\n",
" # I have ~12 hours of leeway due to potential to forget to commit\n",
" for date, qNo in dailies :\n",
" if qNo == 1334 :\n",
" print('\\n\\nhi')\n",
" print(f'{bool(qNo in questionData) = }')\n",
" print(f\"{questionData[qNo]['date_done'] = }\")\n",
" print(f\"{date + timedelta(days=1, hours=12) = }\")\n",
" # if qNo == 1334 :\n",
" # print('\\n\\nhi')\n",
" # print(f'{bool(qNo in questionData) = }')\n",
" # print(f\"{questionData[qNo]['date_done'] = }\")\n",
" # print(f\"{date + timedelta(days=1, hours=12) = }\")\n",
" if qNo in questionData and questionData[qNo]['date_done'] <= date + timedelta(days=1, hours=12) :\n",
" dailiesDict[date] = questionData[qNo].copy()\n",
" dailiesDict[date]['date_done'] = date\n",
" print(f'{dailiesDict[date] = }')\n",
"\n",
" print(f'{dailiesDict = }')\n",
"\n",
" return dailiesDict"
]
Expand Down
15 changes: 9 additions & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
# Categories besides those in lists
PRIMARY_CATEGORIES = set(['Daily', 'Weekly Premium', 'Contest', 'Favourite'])
_oldest_date = datetime.now()
# _OLDEST_DATE = datetime(2024, 7, 23)
# _oldest_date = datetime(2024, 7, 23)


# In[ ]:
Expand Down Expand Up @@ -639,14 +639,17 @@ def parseQuestionsForDailies(questionData: dict) -> Dict[int, Question] :

# I have ~12 hours of leeway due to potential to forget to commit
for date, qNo in dailies :
if qNo == 1334 :
print('\n\nhi')
print(f'{bool(qNo in questionData) = }')
print(f"{questionData[qNo]['date_done'] = }")
print(f"{date + timedelta(days=1, hours=12) = }")
# if qNo == 1334 :
# print('\n\nhi')
# print(f'{bool(qNo in questionData) = }')
# print(f"{questionData[qNo]['date_done'] = }")
# print(f"{date + timedelta(days=1, hours=12) = }")
if qNo in questionData and questionData[qNo]['date_done'] <= date + timedelta(days=1, hours=12) :
dailiesDict[date] = questionData[qNo].copy()
dailiesDict[date]['date_done'] = date
print(f'{dailiesDict[date] = }')

print(f'{dailiesDict = }')

return dailiesDict

Expand Down

0 comments on commit e936125

Please sign in to comment.