Fix graph when y field is None
issue2530
This commit is contained in:
1 parent
0af5a29f88
commit
a9075429eb
1 file changed
+1
-1
@@ -371,7 +371,7 @@ class Graph(gtk.DrawingArea):
|
||||
self.datas[x][key] += 1
|
||||
else:
|
||||
self.datas[x][key] += \
|
||||
float(model[yfield['name']].get(model))
|
||||
float(model[yfield['name']].get(model) or 0)
|
||||
if isinstance(minx, datetime.datetime):
|
||||
date = minx
|
||||
while date <= maxx:
|
||||
|
||||
Reference in new issue
Block a user