Correct regex for state recovery from persistnet store

This commit is contained in:
lash 2022-04-24 20:53:52 +00:00
parent 10b2e91ab2
commit 41fa4cd895
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
4 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,5 @@
- 0.2.2
* Fix composite state factory load regex
- 0.2.1 - 0.2.1
* Add rocksdb backend * Add rocksdb backend
- 0.2.0 - 0.2.0

View File

@ -1,6 +1,6 @@
[metadata] [metadata]
name = shep name = shep
version = 0.2.1rc1 version = 0.2.2
description = Multi-state key stores using bit masks description = Multi-state key stores using bit masks
author = Louis Holbrook author = Louis Holbrook
author_email = dev@holbrook.no author_email = dev@holbrook.no

View File

@ -1,4 +1,4 @@
re_processedname = r'^_?[A-Z,\.]*$' re_processedname = r'^_?[A-Z\._]*$'
class StoreFactory: class StoreFactory:

View File

@ -153,7 +153,6 @@ class SimpleFileStoreFactory(StoreFactory):
def ls(self): def ls(self):
r = [] r = []
import sys
for v in os.listdir(self.__path): for v in os.listdir(self.__path):
if re.match(re_processedname, v): if re.match(re_processedname, v):
r.append(v) r.append(v)