Private
Public Access
1
0

fix of fix

This commit is contained in:
Sander Roosendaal
2019-04-06 18:33:13 +02:00
parent b1f04581a8
commit 5e835a1fdb

View File

@@ -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: