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 b5cdd83
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions openwisp_monitoring/check/classes/wifi_clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,10 @@ def check(self, store=True):
'content_type': self.related_object._meta.label_lower,
'object_id': str(self.related_object.pk),
},
since=int(
(
timezone.localtime()
- timezone.timedelta(
minutes=app_settings.WIFI_CLIENTS_CHECK_INTERVAL
)
).timestamp()
),
since=(
timezone.now()
- timezone.timedelta(minutes=app_settings.WIFI_CLIENTS_CHECK_INTERVAL)
).isoformat(),
)
if not values:
result = 0
Expand Down

0 comments on commit b5cdd83

Please sign in to comment.