sort webring users by most recently updated

This commit is contained in:
likhy 2023-05-04 15:49:34 -07:00
parent f2afe19bc9
commit 8a723c2bc8

View File

@ -390,6 +390,8 @@ if __name__ == "__main__":
# with open("meta.json",'r') as f: # with open("meta.json",'r') as f:
# list_of_json_objs.append(json.loads(f.read())) # list_of_json_objs.append(json.loads(f.read()))
list_of_json_objs = fetch(webring_config["list"]) list_of_json_objs = fetch(webring_config["list"])
list_of_json_objs.sort(
key=lambda e: e["last-updated"], reverse=True)
if list_of_json_objs == []: if list_of_json_objs == []:
print("no remote profiles loaded", file=sys.stderr) print("no remote profiles loaded", file=sys.stderr)
return [] return []