Order of operations matters in math
This commit is contained in:
parent
c211dd3b4a
commit
37a67ac313
@ -86,7 +86,7 @@ class Bot(discord.Client):
|
||||
|
||||
spotify: discord.Spotify
|
||||
last_insert = self.last_insert.get(user_id)
|
||||
if last_insert and last_insert - spotify.created_at > timedelta(seconds=15):
|
||||
if last_insert and (spotify.created_at - last_insert) > timedelta(seconds=15):
|
||||
return
|
||||
|
||||
self.last_insert[user_id] = spotify.created_at
|
||||
|
Loading…
x
Reference in New Issue
Block a user