1.6.1: Updated matches.

This commit is contained in:
2026-01-27 19:11:36 +08:00
parent 86d2dbebe8
commit 92ad093895
2 changed files with 6 additions and 2 deletions

View File

@@ -1100,7 +1100,11 @@ def save_match(cursor, m: MatchData):
ON CONFLICT(steam_id_64) DO UPDATE SET
uid=excluded.uid,
username=excluded.username,
avatar_url=excluded.avatar_url,
avatar_url=CASE
WHEN excluded.avatar_url IS NOT NULL AND excluded.avatar_url != ''
THEN excluded.avatar_url
ELSE dim_players.avatar_url
END,
domain=excluded.domain,
created_at=excluded.created_at,
updated_at=excluded.updated_at,