Skip to content

Commit

Permalink
[fix] Fixed time clause of InfluxQL query
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed Jan 8, 2025
1 parent d68559c commit f5c0b05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openwisp_monitoring/check/classes/wifi_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ def check(self, store=True):
'content_type': self.related_object._meta.label_lower,
'object_id': str(self.related_object.pk),
},
since=int(
since="'{}'".format(
(
timezone.localtime()
- timezone.timedelta(
minutes=app_settings.WIFI_CLIENTS_CHECK_INTERVAL
)
).timestamp()
).isoformat()
),
)
if not values:
Expand Down

0 comments on commit f5c0b05

Please sign in to comment.