Fix
This commit is contained in:
parent
0b83789491
commit
ec83c15da3
@ -101,7 +101,7 @@ class FR2T:
|
|||||||
days = int(self.expire_time.strip("d"))
|
days = int(self.expire_time.strip("d"))
|
||||||
|
|
||||||
if self.expire_time.endswith("h"):
|
if self.expire_time.endswith("h"):
|
||||||
hours = self.expire_time.strip("h")
|
hours = int(self.expire_time.strip("h"))
|
||||||
|
|
||||||
expired_time = now_time - datetime.timedelta(days=days, hours=hours)
|
expired_time = now_time - datetime.timedelta(days=days, hours=hours)
|
||||||
expired_timestamp = datetime.datetime.timestamp(expired_time)
|
expired_timestamp = datetime.datetime.timestamp(expired_time)
|
||||||
|
Loading…
Reference in New Issue
Block a user