From 0f6805ea4ecd04cafc703ea9c6bce05aed1a4bd0 Mon Sep 17 00:00:00 2001 From: Robert Einsle Date: Sat, 11 Feb 2017 10:36:38 +0100 Subject: [PATCH] clean up code --- billard/templatetags/display_client.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/billard/templatetags/display_client.py b/billard/templatetags/display_client.py index 309032a..bc4805d 100644 --- a/billard/templatetags/display_client.py +++ b/billard/templatetags/display_client.py @@ -15,9 +15,7 @@ def display_client(client, desk_no): desk = desks[0] if not desk.enabled: return '' - alert = 'alert-success' - #acc = Accounting.objects.filter(client=client, desk_no=desk_no)[:3][::-1] acc = desk.accounting_set.all()[:3][::-1] if acc is not None and len(acc) > 0: a = acc[-1] @@ -27,7 +25,6 @@ def display_client(client, desk_no): prize = '{0:.2f}'.format(prize) if prize != a.prize: a.prize = prize - html = '
\n' html += '
\n'.format(alert) html += '

({}) {}

\n'.format(desk_no, desk.name)