mirror of
https://github.com/wlinator/luminara.git
synced 2024-10-02 22:23:13 +00:00
Fix bug in daily reset time.
Dailies could be claimed infinitely between 12AM EST and the reset time, this issue has been resolved by making the check more specific.
This commit is contained in:
parent
e4e1af6e5e
commit
a26d8a4c32
1 changed files with 3 additions and 2 deletions
|
@ -50,9 +50,10 @@ class Dailies:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
else:
|
else:
|
||||||
check_time = datetime.now(tz=self.tz).replace(hour=7, minute=0, second=0, microsecond=0)
|
time_now = datetime.now(tz=self.tz)
|
||||||
|
reset_time = time_now.replace(hour=7, minute=0, second=0, microsecond=0)
|
||||||
|
|
||||||
if self.claimed_at < check_time:
|
if self.claimed_at < reset_time < time_now:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in a new issue