remove debug stuff

This commit is contained in:
koksnuss 2020-05-11 10:42:50 +02:00
parent 65beba4ac7
commit 9389353b51

View File

@ -277,10 +277,8 @@ def add_coin(request):
found_on = request.POST['found_on'] if request.POST['found_on'] else None
if found_on:
try:
print(f"found_on before: {found_on}")
found_on = datetime.strptime(found_on, '%d.%m.%Y')
found_on = found_on.strftime('%Y-%m-%d')
print(f"found_on after: {found_on}")
except ValueError:
status = 1
message = f"Das Datum '{found_on}' entspricht nicht dem Format DD.MM.YYYY"