mirror of
https://github.com/Tygs/0bin.git
synced 2023-08-10 21:13:00 +03:00
fix(burn_after_reading): fixes self references in classmethods
This commit is contained in:
parent
1c6b923f19
commit
4de492fb84
@ -294,7 +294,7 @@ class Paste(object):
|
|||||||
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def purge(self, path=settings.PASTE_FILES_ROOT):
|
def purge(cls, path=settings.PASTE_FILES_ROOT):
|
||||||
"""
|
"""
|
||||||
Purge the content folder
|
Purge the content folder
|
||||||
Return the number of paste deleted.
|
Return the number of paste deleted.
|
||||||
@ -318,7 +318,7 @@ class Paste(object):
|
|||||||
return 'burn_after_reading' in str(self.expiration)
|
return 'burn_after_reading' in str(self.expiration)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _purge_file(self, fname):
|
def _purge_file(cls, fname):
|
||||||
"""
|
"""
|
||||||
Purges the given file if expired.
|
Purges the given file if expired.
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user