Fix burn_after_reading feature, along with zerobin.py

This commit is contained in:
Shir0kamii 2015-10-04 19:47:00 +02:00
parent a344dbb18f
commit 8c1379b827
2 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python
# coding: utf-8
from zerobin.routes import main
from zerobin.cmd import main
main()

View File

@ -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)