Skip to content

Commit

Permalink
style: run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sbgap committed Nov 8, 2024
1 parent a0efc72 commit 17a21f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alerta/database/backends/postgres/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,7 @@ def get_notifications_history_hc(self):
WHERE now() - sent_time < '1h'
ORDER BY "rule", sent_time DESC) AS f WHERE sent = false
"""
return self._fetchone(select, {"now": datetime.utcnow()}).count
return self._fetchone(select, {'now': datetime.utcnow()}).count

def get_notifications_history_count(self, query=None):
query = query or Query()
Expand Down

0 comments on commit 17a21f6

Please sign in to comment.