fixes-logs-imports
This commit is contained in:
@@ -28,9 +28,10 @@ def scan(match="usr-*", count=100):
|
||||
# Parse the JSON data from each value
|
||||
items = []
|
||||
for value in values:
|
||||
value_str = value.decode("utf-8")
|
||||
i = json.loads(value_str)
|
||||
items.append(i)
|
||||
if value:
|
||||
value_str = value.decode("utf-8")
|
||||
i = json.loads(value_str)
|
||||
items.append(i)
|
||||
print(f"scan found {len(items)} items")
|
||||
|
||||
return keys, items
|
||||
|
Reference in New Issue
Block a user