X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=workitems.py;h=68554fe57a19779826f13486cd30be43670655bc;hp=fa40e47764b0800d579b0f252df41171a2e1d27c;hb=258d38b9464e9e7a2d9225df4c2bce0879b88485;hpb=1a473459cc1097ae568d5dc32bce05e16d2a38bb diff --git a/workitems.py b/workitems.py index fa40e47..68554fe 100755 --- a/workitems.py +++ b/workitems.py @@ -315,6 +315,8 @@ def csv(db, from_date, to_date): data = workitems_over_time(db) dates = sorted(data.keys()) + if not dates: + return f = _fromstr(from_date or dates[0]) t = _fromstr(to_date or dates[-1])