remove debug stuff
This commit is contained in:
parent
65beba4ac7
commit
9389353b51
@ -277,10 +277,8 @@ def add_coin(request):
|
|||||||
found_on = request.POST['found_on'] if request.POST['found_on'] else None
|
found_on = request.POST['found_on'] if request.POST['found_on'] else None
|
||||||
if found_on:
|
if found_on:
|
||||||
try:
|
try:
|
||||||
print(f"found_on before: {found_on}")
|
|
||||||
found_on = datetime.strptime(found_on, '%d.%m.%Y')
|
found_on = datetime.strptime(found_on, '%d.%m.%Y')
|
||||||
found_on = found_on.strftime('%Y-%m-%d')
|
found_on = found_on.strftime('%Y-%m-%d')
|
||||||
print(f"found_on after: {found_on}")
|
|
||||||
except ValueError:
|
except ValueError:
|
||||||
status = 1
|
status = 1
|
||||||
message = f"Das Datum '{found_on}' entspricht nicht dem Format DD.MM.YYYY"
|
message = f"Das Datum '{found_on}' entspricht nicht dem Format DD.MM.YYYY"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user