Skip to content

Commit

Permalink
Update api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Highfire1 authored Oct 31, 2024
1 parent 2c9ca19 commit 914ca79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ async def lifespan(app: FastAPI):
if (os.path.exists(DB_LOCATION)):
print("Database found.")
controller.create_db_and_tables()
hourly(use_cache=True)
controller.checkIfNextSemesterExistsAndUpdate()
hourly(use_cache=True)
else:
print("Database not found. Building database from scratch.")
# save results to cache if cache doesn't exist
Expand Down

0 comments on commit 914ca79

Please sign in to comment.