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,6 +35,7 @@ class Repeat:
|
|||||||
def checkInvites():
|
def checkInvites():
|
||||||
invites = dict(data_store.invites)
|
invites = dict(data_store.invites)
|
||||||
# checkInvite already loops over everything, no point running it multiple times.
|
# checkInvite already loops over everything, no point running it multiple times.
|
||||||
|
if len(invites) != 0:
|
||||||
checkInvite(list(invites.keys())[0])
|
checkInvite(list(invites.keys())[0])
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user