init eACGM

This commit is contained in:
Tokisakix
2025-08-07 10:14:54 +08:00
commit 7a4a0b1b14
51 changed files with 11495 additions and 0 deletions

13
eacgm/webui/reader.py Normal file
View File

@@ -0,0 +1,13 @@
def log_reader(path):
with open(path, 'r') as f:
data = f.readlines()
for i, d in enumerate(data):
data[i] = d.strip().split(' ')
ret = []
for d in data:
tmp = dict()
tmp['time'] = d[3]
tmp['op'] = d[5]
tmp['name'] = d[6]
ret.append(tmp)
return ret