Commit aec65e04ea94179b23c47f0764cf90725270cdbd
1 parent
4f87faf3
Exists in
master
and in
4 other branches
New cli command get_current_period()
Showing
1 changed file
with
8 additions
and
0 deletions
Show diff stats
app/db_mgr.py
@@ -198,3 +198,11 @@ def charges_by_agent(agent_id): | @@ -198,3 +198,11 @@ def charges_by_agent(agent_id): | ||
198 | else: | 198 | else: |
199 | all_charges.append([p, 0]) | 199 | all_charges.append([p, 0]) |
200 | return all_charges | 200 | return all_charges |
201 | + | ||
202 | + | ||
203 | +def get_current_period(): | ||
204 | + """ | ||
205 | + :return: the id of the period of current day | ||
206 | + """ | ||
207 | + # TODO: request on dates as soon as periods are dated | ||
208 | + return 14 |