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(