Private
Public Access
1
0

recognizing images / json

This commit is contained in:
Sander Roosendaal
2021-05-10 21:16:07 +02:00
parent 105a78d392
commit 06c50cedfe

View File

@@ -2013,6 +2013,16 @@ def new_workout_from_file(r, f2,
return -1, message, f2
# Some people try to upload Concept2 logbook summaries
if fileformat == 'imageformat':
os.remove(f2)
message = "You cannot upload image files here"
return (0, message, f2)
if fileformat == 'json':
os.remove(f2)
message = "JSON format not supported in direct upload"
return (0, message, f2)
if fileformat == 'c2log':
os.remove(f2)
message = "This summary does not contain stroke data. Use the files containing stroke by stroke data."