mirror of
https://github.com/Tygs/0bin.git
synced 2023-08-10 21:13:00 +03:00
Fix burn_after_reading feature, along with zerobin.py
This commit is contained in:
parent
a344dbb18f
commit
8c1379b827
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python
|
||||
# coding: utf-8
|
||||
|
||||
from zerobin.routes import main
|
||||
from zerobin.cmd import main
|
||||
|
||||
main()
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user