Now sorting active projects by ID vs Name (Oldest first, newest last).

This commit is contained in:
JustinOros
2025-11-17 12:28:48 -07:00
parent 6e0816e3cd
commit 92de25b241
+1 -2
View File
@@ -97,7 +97,7 @@ def get_projects():
if pid not in KNOWN: if pid not in KNOWN:
print(f"⚠️ New project detected on stats.distributed.net: ID={pid}, Name='{name}'") print(f"⚠️ New project detected on stats.distributed.net: ID={pid}, Name='{name}'")
return dict(sorted(projects.items(), key=lambda x: x[0])) return dict(sorted(projects.items(), key=lambda x: int(x[0])))
def search_participant(project_id, search_term, debug=False): def search_participant(project_id, search_term, debug=False):
@@ -318,4 +318,3 @@ if __name__ == "__main__":
except Exception as e: except Exception as e:
print(f"\nUnexpected error: {e}") print(f"\nUnexpected error: {e}")
sys.exit(1) sys.exit(1)