mirror of
https://github.com/hrfee/jellyfin-accounts.git
synced 2024-12-22 09:00:14 +00:00
Don't check invites if there aren't any
self-explanatory. Check if the dict is empty before doing anything.
This commit is contained in:
parent
b863706d26
commit
ef8ff531e3
@ -35,7 +35,8 @@ class Repeat:
|
||||
def checkInvites():
|
||||
invites = dict(data_store.invites)
|
||||
# checkInvite already loops over everything, no point running it multiple times.
|
||||
checkInvite(list(invites.keys())[0])
|
||||
if len(invites) != 0:
|
||||
checkInvite(list(invites.keys())[0])
|
||||
|
||||
|
||||
if config.getboolean("notifications", "enabled"):
|
||||
|
Loading…
Reference in New Issue
Block a user