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
c8241fcf1a24
Commit
4bb32731
authored
Jun 14, 2011
by
Arthur Lutz
Browse files
fallback to null if no data is returned
parent
71e8d9f2cad6
Changes
1
Hide whitespace changes
Inline
Side-by-side
views/primary.py
View file @
c8241fcf
...
...
@@ -113,5 +113,5 @@ class StatGraph(EntityView):
(
' HAVING STOP-START >= 20'
,
_
(
'Monthly'
))):
self
.
w
(
u
'<h2>%s</h2>'
%
label
)
rset
=
self
.
_cw
.
execute
(
rql
%
(
constraint
,
constraint
),
{
'e'
:
entity
.
eid
})
self
.
w
(
self
.
_cw
.
view
(
'plot'
,
rset
))
self
.
w
(
self
.
_cw
.
view
(
'plot'
,
rset
,
'null'
))
self
.
w
(
u
'</div>'
)
Write
Preview
Markdown
is supported
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