multiple task query
This commit is contained in:
@@ -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}},
|
||||
|
||||
Reference in New Issue
Block a user