support SOM
This commit is contained in:
parent
eb005eb5c8
commit
40cb9bb845
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ def _get_current_limit(budget_id):
|
|||
today = datetime.datetime.combine(datetime.date.today(), datetime.datetime.min.time())
|
||||
return [
|
||||
budget for budget in budgets
|
||||
if today > dateutil.parser.parse(budget.get('attributes').get('start')) and today <= dateutil.parser.parse(budget.get('attributes').get('end'))
|
||||
if today >= dateutil.parser.parse(budget.get('attributes').get('start')) and today <= dateutil.parser.parse(budget.get('attributes').get('end'))
|
||||
][0]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue