From ac83dce23339ba11afb24828ba635bdff658ae9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?moritz=20m=C3=BCnch?= Date: Sat, 3 Oct 2020 21:22:36 +0200 Subject: [PATCH] fix #44 --- coinmanager/coinc/views.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/coinmanager/coinc/views.py b/coinmanager/coinc/views.py index 1e6ef12..8f82d82 100644 --- a/coinmanager/coinc/views.py +++ b/coinmanager/coinc/views.py @@ -130,7 +130,7 @@ def show_country(country, single_country=False): for stamp in stamps_per_year: c['years'][year][stamp] = { - 1: {}, + '1': {}, 2: {}, 5: {}, 10: {}, @@ -228,10 +228,9 @@ def show_coin(coin, value): 'td_class': coin['td_class'], 'div_class': coin['div_class'], 'special_class': coin['special_class'], - 'special_name': coin['special_name'], - } + 'special_name': coin['special_name']} else: - return {} + return { 'value': value } def add_user(request, username, color):