iwla

iwla Commit Details

Date:2014-12-12 13:18:12 (6 years 7 months ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:2c3d8d22f8b37465f2a5565be93577647ec3df25
Parents: 15d2877e5a9f592cefd1cb1be9b13a8a4258141f
Message:Always checks time before append hit

Changes:
Miwla.py (3 diffs)

File differences

iwla.py
194194
195195
196196
197
197
198198
199199
200200
......
514514
515515
516516
517
518517
519518
520519
......
568567
569568
570569
570
571
571572
572
573
574
575
573
576574
577575
578576
return self.display
def getDBFilename(self, time):
return os.path.join(conf.DB_ROOT, str(time.tm_year), str(time.tm_mon), conf.DB_FILENAME)
return os.path.join(conf.DB_ROOT, str(time.tm_year), '%02d' % time.tm_mon, conf.DB_FILENAME)
def _serialize(self, obj, filename):
base = os.path.dirname(filename)
os.remove(path)
print "==> Serialize to %s" % path
self._serialize(self.current_analysis, path)
# Save month stats
self.current_analysis = self._deserialize(self.getDBFilename(t)) or self._clearVisits()
self.analyse_started = True
else:
if time.mktime(t) < time.mktime(cur_time):
return False
if not self.analyse_started:
if time.mktime(t) < time.mktime(cur_time):
return False
else:
self.analyse_started = True
self.analyse_started = True
if cur_time.tm_mon != t.tm_mon:
self._generateMonthStats()
self.current_analysis = self._deserialize(self.getDBFilename(t)) or self._clearVisits()

Archive Download the corresponding diff file

Branches

Tags