recognizing images / json
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user