Skip to content

Commit 8f55f12

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b3b45cf commit 8f55f12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webmon_app/reporting/report/view_util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def _get_rate(id_name):
250250
# If we didn't find good rates in the cache, recalculate them
251251
if runs is None or errors is None:
252252
# check for any run in the last n-hours
253-
time_oldest = timezone.now() - datetime.timedelta(hours=n_hours + 1) # is +1 needed?
253+
time_oldest = timezone.now() - datetime.timedelta(hours=n_hours + 1) # is +1 needed?
254254
have_runs = bool(DataRun.objects.filter(instrument_id=instrument_id, created_on__gte=time_oldest).count() > 0)
255255

256256
# only query further if there are runs for the instrument
@@ -260,7 +260,7 @@ def _get_rate(id_name):
260260
else:
261261
runs = []
262262
errors = []
263-
num_runs = 0 # there are no runs
263+
num_runs = 0 # there are no runs
264264
for i in range(n_hours):
265265
runs.append([-i, num_runs])
266266
errors.append([-i, num_runs])

0 commit comments

Comments
 (0)