From cc1efe59f3af339307cf6ce2f63c798ba94df570 Mon Sep 17 00:00:00 2001
From: schneefux <schneefux+commit@schneefux.xyz>
Date: Fri, 11 Aug 2017 10:04:41 +0200
Subject: fix typo

---
 crunch_player.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'crunch_player.sql')

diff --git a/crunch_player.sql b/crunch_player.sql
index 4e449f3..ea10d95 100644
--- a/crunch_player.sql
+++ b/crunch_player.sql
@@ -50,7 +50,7 @@ group by p.player_api_id, s.id, f.id, h.id, gm.id, r.id
 order by p.id
 
 on duplicate key update
-updated_at = case when values(updated_at) > updated_a then values(updated_at) else updated_at end,
+updated_at = case when values(updated_at) > updated_at then values(updated_at) else updated_at end,
 played = played + values(played),
 wins = wins + values(wins),
 trueskill_max = case when values(trueskill_max) > trueskill_max then values(trueskill_max) else trueskill_max end,
-- 
cgit v1.3.1

