Fixes prefix encoding

This commit is contained in:
Sergi Delgado Segura
2019-10-24 14:26:34 +01:00
parent 594cc6ca22
commit db87fab9ee
2 changed files with 2 additions and 2 deletions

View File

@@ -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)