From aec65e04ea94179b23c47f0764cf90725270cdbd Mon Sep 17 00:00:00 2001 From: Richard Hitier Date: Mon, 12 Apr 2021 17:52:55 +0200 Subject: [PATCH] New cli command get_current_period() --- app/db_mgr.py | 8 ++++++++ 1 file changed, 8 insertions(+), 0 deletions(-) diff --git a/app/db_mgr.py b/app/db_mgr.py index d2a1445..8b3dee0 100644 --- a/app/db_mgr.py +++ b/app/db_mgr.py @@ -198,3 +198,11 @@ def charges_by_agent(agent_id): else: all_charges.append([p, 0]) return all_charges + + +def get_current_period(): + """ + :return: the id of the period of current day + """ + # TODO: request on dates as soon as periods are dated + return 14 -- libgit2 0.21.2