Skip to content

Commit

Permalink
bugfix search&replace snafu
Browse files Browse the repository at this point in the history
  • Loading branch information
tomster committed Sep 16, 2016
1 parent 86ac253 commit 0625659
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions application/briefkasten/commands.py
Expand Up @@ -74,7 +74,7 @@ def janitor(root): # pragma: no cover
report = report + 'Editor %s has a key that never expires.\n' % editor
continue

keyexpiry = datetime.utcfromtimestamp(int(k['expires']))
keyexpiry = datetime.utcfromtimestamp(int(key['expires']))
delta = keyexpiry - now

if delta.days < 0:
Expand All @@ -83,7 +83,6 @@ def janitor(root): # pragma: no cover
report = report + 'Editor ' + editor + ' has a key that will expire in %d days.\n' % delta.days

for drop in drop_root:
print('debugging %s' % drop)
age = now - drop.last_changed()
max_age = 365 if not drop.from_watchdog else 1

Expand Down

0 comments on commit 0625659

Please sign in to comment.