mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-25 14:36:34 +00:00
Add days_to_keep_date
This commit is contained in:
parent
a8b12338af
commit
bb73cc6c97
@ -460,6 +460,14 @@ class Source(models.Model):
|
|||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@property
|
||||||
|
def days_to_keep_date(self):
|
||||||
|
delta = self.days_to_keep
|
||||||
|
if delta > 0:
|
||||||
|
return timezone.now() - timedelta(days=delta)
|
||||||
|
else:
|
||||||
|
return False
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def extension(self):
|
def extension(self):
|
||||||
'''
|
'''
|
||||||
|
Loading…
Reference in New Issue
Block a user