hours: check for manually logged screen unlock events
This commit is contained in:
parent
a9029f0233
commit
230fb1ccf0
3
hours
3
hours
@ -117,7 +117,8 @@ def main(argv):
|
|||||||
line = f.readline()
|
line = f.readline()
|
||||||
if line == '':
|
if line == '':
|
||||||
break
|
break
|
||||||
if re.search(r'gnome-screensaver.*unlocked.login.keyring', line):
|
if (re.search(r'gnome-screensaver.*unlocked.login.keyring', line)
|
||||||
|
or re.search(r'screen unlocked', line)):
|
||||||
# found a login line
|
# found a login line
|
||||||
dt = get_dt_from_log_line(line)
|
dt = get_dt_from_log_line(line)
|
||||||
idx = (dt.date() - monday).days
|
idx = (dt.date() - monday).days
|
||||||
|
Loading…
x
Reference in New Issue
Block a user