fix: clarify friend since vs last seen
CI / test (push) Successful in 29s

Show lastlogoff as relative last-seen time, label friend_since as 'friends since YYYY', and show the Steam account creation year in the comparison header.
This commit is contained in:
strsv committed 2026-11-07 02:20:43 +03:00
1 parent 80aae1a1df
commit 85ff1e3893
7 files changed
+55 -7

No files matched your search

+4
View File
@@ -1415,6 +1415,8 @@ class Handler(BaseHTTPRequestHandler):
"profile_url": player.get("profileurl")
or f"https://steamcommunity.com/profiles/{sid}",
"state": player.get("personastate"),
"lastlogoff": player.get("lastlogoff"),
"created": player.get("timecreated"),
"friend_since": item.get("friend_since"),
})
items.sort(key=lambda row: row["name"].lower())
@@ -1473,6 +1475,8 @@ class Handler(BaseHTTPRequestHandler):
"profile_url": player.get("profileurl")
or f"https://steamcommunity.com/profiles/{friend_id}",
"state": player.get("personastate"),
"lastlogoff": player.get("lastlogoff"),
"created": player.get("timecreated"),
"total_games": len(games),
"common_count": len(common),
"friend_only_count": len(friend_only),