fixes-logs-imports

This commit is contained in:
2023-09-18 10:50:48 +03:00
parent cf4f13ae9b
commit 95071ec301
14 changed files with 98 additions and 61 deletions

View File

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