diff --git a/app/db_mgr.py b/app/db_mgr.py index 3177049..2682360 100644 --- a/app/db_mgr.py +++ b/app/db_mgr.py @@ -207,5 +207,5 @@ def get_current_period(): :return: the id of the period of current day """ # TODO: request on dates as soon as periods are dated - p = Period.query.filter(Period.name == '2021').one_or_none() - return 14 + p = Period.query.filter((Period.name == '2021') | (Period.name == '2021_S1')).one() + return p.id -- libgit2 0.21.2