From ec83c15da366f2533460b94501a0d262072ffc55 Mon Sep 17 00:00:00 2001 From: Apocalypsor <37431235+Apocalypsor@users.noreply.github.com> Date: Sat, 26 Jun 2021 16:39:25 +0800 Subject: [PATCH] Fix --- FR2T/fr2t.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FR2T/fr2t.py b/FR2T/fr2t.py index 2ad4574..9ad4762 100644 --- a/FR2T/fr2t.py +++ b/FR2T/fr2t.py @@ -101,7 +101,7 @@ class FR2T: days = int(self.expire_time.strip("d")) 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_timestamp = datetime.datetime.timestamp(expired_time)