date correction
This commit is contained in:
@@ -3743,3 +3743,7 @@ class ShareKey(models.Model):
|
||||
@property
|
||||
def expired(self):
|
||||
return self.creation_date + datetime.timedelta(self.expiration_seconds) < timezone.now()
|
||||
|
||||
@property
|
||||
def expiration_date(self):
|
||||
return self.creation_date + datetime.timedelta(self.expiration_seconds)
|
||||
|
||||
Reference in New Issue
Block a user