From 132397652198a33ffea1e1d2edf6e7adde9b28a5 Mon Sep 17 00:00:00 2001 From: Robert Einsle Date: Sun, 26 Feb 2017 12:37:47 +0100 Subject: [PATCH] fix error in model --- billard/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/billard/models.py b/billard/models.py index e6c4d60..f9c673b 100644 --- a/billard/models.py +++ b/billard/models.py @@ -153,7 +153,7 @@ def process_location_data(): acc.save() ld.delete() else: - if len(acc) > 0: + if len(ac) > 0: acc = ac[0] acc.time_to = ld.tst acc.prize = utils.get_prize_for(