stats format

This commit is contained in:
Administrator 2023-10-02 23:31:35 +03:00
parent 7fb7d31c4c
commit 14918f18a7

View File

@ -21,7 +21,7 @@ class StatsView(BaseView):
for key in snapshot.data: for key in snapshot.data:
keys.add(key) keys.add(key)
keys = list(keys) keys = list(keys)
rows = [[] for _ in keys] rows = [[key] for key in keys]
for snapshot in snapshots: for snapshot in snapshots:
for index, key in enumerate(keys): for index, key in enumerate(keys):
rows[index].append(snapshot.data.get(key)) rows[index].append(snapshot.data.get(key))