Merge pull request #91 from Shir0kamii/master

Fix burn_after_reading feature, along with zerobin.py
This commit is contained in:
sametmax 2016-01-08 14:10:38 +01:00
commit 7da1615d41
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)