Now sorting active projects by ID vs Name (Oldest first, newest last).
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user