iwla

iwla Commit Details

Date:2014-12-14 15:41:47 (6 years 7 months ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:c221c813bf26b8d7702a248c848b2b4d43591792
Parents: 3c5f117870f1ec1737d9c2edb90daf1573b4fc44
Message:Don't account hits <= last_access (< before)

Changes:
Miwla.py (3 diffs)

File differences

iwla.py
551551
552552
553553
554
554
555555
556
557
556
558557
559558
560559
......
581580
582581
583582
583
584
584585
585586
586587
......
609610
610611
611612
612
613
613
614614
615615
616616
self.current_analysis = self._deserialize(self.getDBFilename(t)) or self._clearVisits()
self.analyse_started = True
else:
if time.mktime(t) < time.mktime(cur_time):
if time.mktime(t) <= time.mktime(cur_time):
return False
if not self.analyse_started:
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()
self.meta_infos = self._deserialize(conf.META_PATH) or self._clearMeta()
if self.meta_infos['last_time']:
print 'Last time'
print self.meta_infos['last_time']
self.current_analysis = self._deserialize(self.getDBFilename(self.meta_infos['last_time'])) or self._clearVisits()
else:
self._clearVisits()
del self.meta_infos['start_analysis_time']
self._serialize(self.meta_infos, conf.META_PATH)
else:
print '==> Analyse not started : nothing to do'
self._generateMonthStats()
print '==> Analyse not started : nothing new'
if __name__ == '__main__':
parser = argparse.ArgumentParser(description='Intelligent Web Log Analyzer')

Archive Download the corresponding diff file

Branches

Tags