multiple task query

This commit is contained in:
buenosairesam
2025-01-25 07:33:37 -03:00
parent 2da2f2641a
commit 68f91f06de
3 changed files with 10 additions and 21 deletions

View File

@@ -116,7 +116,7 @@ def get_period_totals(start, end, task=None):
refactor to pass in the timezone and make the variable names clearer
"""
task_query = {"task": task} if task else {}
task_query = {"task": {"$in": task.split(",")}} if task else {}
queries = {
"period": {"date": {"$gt": start, "$lt": end}},