File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/webmon_app/reporting/report Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ])
You can’t perform that action at this time.
0 commit comments