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:
commit
7da1615d41
@ -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()
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user