dmanty45 / bots

Automatically exported from code.google.com/p/bots
0 stars 0 forks source link

"Datefrom" on select forms defaults to 1860 days (about 5 years ago); bug #44

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
datetimefrom() in viewlib.py has code
terug = datetime.datetime.today()-datetime.timedelta(1860)

It makes no sense for this to be longer ago than we have saved data
for, so I changed this to
terug = datetime.datetime.today()- 
datetime.timedelta(days=botsglobal.ini.getint('settings','maxdays',
30))

Original issue reported on code.google.com by hjebb...@gmail.com on 18 Dec 2010 at 11:16

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago

Original comment by hjebb...@gmail.com on 10 Sep 2013 at 12:44