Handle missing branch for sync with no not-state filter

This commit is contained in:
lash 2022-05-02 19:59:22 +00:00
parent 714bf79d22
commit b53b729ea1
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -157,12 +157,14 @@ class PersistedState(State):
if state == None:
states_numeric = list(self.all(numeric=True))
else:
#states = [self.name(state)]
states_numeric = [state]
states = []
for state in states_numeric:
if not_state != None and state & not_state == 0:
if not_state != None:
if state & not_state == 0:
states.append(self.name(state))
else:
states.append(self.name(state))
ks = []