#30: allow integer formats like 1.500.000 for #circulation
This commit is contained in:
parent
023539d211
commit
8d5ba29bf8
@ -135,8 +135,7 @@ def show_coin(country, year, stamp, value):
|
||||
@param stamp: stamp_id
|
||||
@param value: int e [1,2,5,10,20,50,100,200,201,202,203]
|
||||
'''
|
||||
# TODO fix this before the end of 2098
|
||||
year = int(year)
|
||||
year = int(year) # TODO fix this before the end of 2098
|
||||
if year == 99:
|
||||
year += 1900
|
||||
else:
|
||||
@ -309,7 +308,7 @@ def add_coin(request):
|
||||
|
||||
circulation = request.POST['circulation'] if request.POST['circulation'] else 0
|
||||
try:
|
||||
circulation = int(circulation)
|
||||
circulation = int(circulation.replace('.', ''))
|
||||
except ValueError:
|
||||
return response(1, f"Die Münzauflage '{circulation}' muss eine Zahl sein.")
|
||||
if circulation < 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user