fix of fix
This commit is contained in:
@@ -110,7 +110,7 @@ def make_new_workout_from_email(rower, datafile, name, cntr=0,testing=False):
|
||||
|
||||
|
||||
f,e = os.path.splitext(datafilename)
|
||||
if fileformat == 'unknown' and e is not 'txt':
|
||||
if fileformat == 'unknown' and 'txt' not in e:
|
||||
fcopy = "media/"+datafilename
|
||||
if not testing:
|
||||
if settings.CELERY:
|
||||
|
||||
Reference in New Issue
Block a user