Commit 83f7413e authored by Arthur Lutz's avatar Arthur Lutz

use new request for each statperiod (avoid cnx.close bug) closes #2218511

parent f171b44b08f0
......@@ -121,7 +121,7 @@ class StatsUpdater(object):
elif periodicity == 'hour':
start = datetime(chosendate.year, chosendate.month, chosendate.day, chosendate.hour)
stop = datetime(chosendate.year, chosendate.month, chosendate.day, chosendate.hour, 59, 59)
return get_or_create_statperiod(self.session, start, stop, stats_report)
return get_or_create_statperiod(self.cnx.request(), start, stop, stats_report)
## update API #############################################################
def update_stats(self, skip_compress=False):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment