1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00

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 #!/usr/bin/env python
# coding: utf-8 # coding: utf-8
from zerobin.routes import main from zerobin.cmd import main
main() main()

View File

@ -172,7 +172,6 @@ class Paste(object):
# deleting the paste # deleting the paste
if "burn_after_reading" == self.expiration: if "burn_after_reading" == self.expiration:
expiration = self.expiration + '#%s' % datetime.now() # TODO: use UTC dates expiration = self.expiration + '#%s' % datetime.now() # TODO: use UTC dates
expiration = self.expiration
else: else:
expiration = as_unicode(self.expiration) expiration = as_unicode(self.expiration)