Skip to content

Commit

Permalink
uzsu: fix evaluation of upcoming setting when once feature is used
Browse files Browse the repository at this point in the history
  • Loading branch information
onkelandy committed Dec 21, 2024
1 parent e4109af commit 11ce478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uzsu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ def _get_time(self, entry, timescan, item=None, entryindex=None, caller=None):
return None, None, None
value = entry['value']
next = None
cond_activetoday = entry.get('activeToday') is True and self._items[item]['interpolation'].get('perday')
cond_activetoday = entry.get('activeToday') is True and timescan == 'previous'
active = True if caller == "dry_run" or cond_activetoday else entry.get('active')
today = datetime.today()
tomorrow = today + timedelta(days=1)
Expand Down

0 comments on commit 11ce478

Please sign in to comment.