Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
awstats
Commits
b408799c9a8e
Commit
83f7413e
authored
Mar 15, 2012
by
Arthur Lutz
Browse files
use new request for each statperiod (avoid cnx.close bug) closes #2218511
parent
f171b44b08f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
ccplugin.py
View file @
b408799c
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment