From 8c1379b827f2fa036f91f1db1b747652c6ef7610 Mon Sep 17 00:00:00 2001 From: Shir0kamii Date: Sun, 4 Oct 2015 19:47:00 +0200 Subject: [PATCH] Fix burn_after_reading feature, along with zerobin.py --- zerobin.py | 2 +- zerobin/paste.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/zerobin.py b/zerobin.py index 91d0b67..271fcac 100644 --- a/zerobin.py +++ b/zerobin.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # coding: utf-8 -from zerobin.routes import main +from zerobin.cmd import main main() diff --git a/zerobin/paste.py b/zerobin/paste.py index e5ecad7..5662332 100644 --- a/zerobin/paste.py +++ b/zerobin/paste.py @@ -172,7 +172,6 @@ class Paste(object): # deleting the paste if "burn_after_reading" == self.expiration: expiration = self.expiration + '#%s' % datetime.now() # TODO: use UTC dates - expiration = self.expiration else: expiration = as_unicode(self.expiration)