mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-18 06:34:19 +01:00
Fixes prefix encoding
This commit is contained in:
@@ -20,7 +20,7 @@ class DBManager:
|
||||
def load_appointments_db(self, prefix):
|
||||
data = {}
|
||||
|
||||
for k, v in self.db.iterator(prefix=prefix):
|
||||
for k, v in self.db.iterator(prefix=prefix.encode('utf-8')):
|
||||
# Get uuid and appointment_data from the db
|
||||
uuid = k[1:].decode('utf-8')
|
||||
data[uuid] = json.loads(v)
|
||||
|
||||
Reference in New Issue
Block a user