shep

Multi-state key stores using bit masks for python3
git clone git://git.defalsify.org/shep.git
Log | Files | Refs | LICENSE

commit b53b729ea197e590128bc76eb9f87b86f14542e2
parent 714bf79d22e3aa236e02da84fa6553a26d635649
Author: lash <dev@holbrook.no>
Date:   Mon,  2 May 2022 19:59:22 +0000

Handle missing branch for sync with no not-state filter

Diffstat:
Mshep/persist.py | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/shep/persist.py b/shep/persist.py @@ -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 = []