forked from Keelrleek/Harbor
Logbook: lead with '% done' (functions handled out of all 10,673), game functions decompiled, and unsorted; trend tracks done
This commit is contained in:
1 parent
b7e09cfbd1
commit
0d764799a7
2 files changed
+13
-4
No files matched your search
@@ -84,7 +84,13 @@ def set_stats(project, stats, history_point=True):
|
||||
_write(project, "stats.json", stats)
|
||||
if history_point:
|
||||
history = _read(project, "history.json", [])
|
||||
cats = stats.get("by_category") or {}
|
||||
total = stats.get("functions") or 0
|
||||
undone_game = max(0, (cats.get("game") or {}).get("functions", 0)
|
||||
- ((stats.get("by_status") or {}).get("decompiled") or {}).get("functions", 0))
|
||||
handled = total - (cats.get("unsorted") or {}).get("functions", 0) - undone_game
|
||||
history.append({"at": stats["updated_at"], "classified": stats.get("classified_percent", 0),
|
||||
"done": round(100 * handled / total, 2) if total else 0,
|
||||
"decompiled": stats.get("game_bytes_decompiled_percent", 0),
|
||||
"weighted": stats.get("weighted_percent", 0),
|
||||
"verified": stats.get("game_bytes_verified_percent", 0)})
|
||||
|
||||
Reference in new issue
Block a user