mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
@ -171,7 +171,7 @@ class LastSession(object):
|
|||||||
if skip:
|
if skip:
|
||||||
logging.debug("skipping parsing of the last session logs ...")
|
logging.debug("skipping parsing of the last session logs ...")
|
||||||
else:
|
else:
|
||||||
logging.debug("parsing last session logs ...")
|
logging.debug("reading last session logs ...")
|
||||||
|
|
||||||
lines = []
|
lines = []
|
||||||
|
|
||||||
@ -193,6 +193,8 @@ class LastSession(object):
|
|||||||
self.last_session_id = hashlib.md5(lines[0].encode()).hexdigest()
|
self.last_session_id = hashlib.md5(lines[0].encode()).hexdigest()
|
||||||
self.last_saved_session_id = self._get_last_saved_session_id()
|
self.last_saved_session_id = self._get_last_saved_session_id()
|
||||||
|
|
||||||
|
logging.debug("parsing last session logs (%d lines) ..." % len(lines))
|
||||||
|
|
||||||
self._parse_stats()
|
self._parse_stats()
|
||||||
self.parsed = True
|
self.parsed = True
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user