Skip to content

Commit 57e3f87

Browse files
committed
fix: datetime.now → datetime.datetime.now
1 parent 7710353 commit 57e3f87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def run():
285285
# Refresh the semester catalog: run on the 5th and 25th of each month,
286286
# or immediately if the database has no catalog data yet.
287287
has_catalog = bool(db.list_all_courses())
288-
today = datetime.now().day
288+
today = datetime.datetime.now().day
289289
if not has_catalog or today in (5, 25):
290290
_crawl_semester_catalog(client, db, reporter)
291291
else:

0 commit comments

Comments
 (0)