From 5e835a1fdba0806391ab58bce85e8568ce9c2ef0 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sat, 6 Apr 2019 18:33:13 +0200 Subject: [PATCH] fix of fix --- rowers/mailprocessing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rowers/mailprocessing.py b/rowers/mailprocessing.py index 803d65e0..9d3d824d 100644 --- a/rowers/mailprocessing.py +++ b/rowers/mailprocessing.py @@ -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: