From 75d5db185fa8c9a61149e38a8d49781a0ebc1610 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sat, 7 Jul 2018 16:13:19 +0200 Subject: [PATCH] small fixes --- rowers/dataprep.py | 1 - rowers/teams.py | 1 - rowers/uploads.py | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/rowers/dataprep.py b/rowers/dataprep.py index fb2bb691..1b54a396 100644 --- a/rowers/dataprep.py +++ b/rowers/dataprep.py @@ -1177,7 +1177,6 @@ def new_workout_from_file(r, f2, message = None try: fileformat = get_file_type(f2) - print fileformat,'aap' except IOError: os.remove(f2) message = "Rowsandall could not process this file. The extension is supported but the file seems corrupt. Contact info@rowsandall.com if you think this is incorrect." diff --git a/rowers/teams.py b/rowers/teams.py index 7ddbfcad..ba802fd2 100644 --- a/rowers/teams.py +++ b/rowers/teams.py @@ -393,7 +393,6 @@ def send_request_email(rekwest): code = rekwest.code teamname = rekwest.team.name requestor = rekwest.user.first_name+' '+rekwest.user.last_name - print requestor,'aap' res = myqueue(queuehigh, handle_sendemail_request, diff --git a/rowers/uploads.py b/rowers/uploads.py index 3e0869fd..2ee1bab2 100644 --- a/rowers/uploads.py +++ b/rowers/uploads.py @@ -124,7 +124,7 @@ def gettypeoptions_body2(uploadoptions,body): if testerb.match(line.lower()): for typ,verb in boattypes: str1 = '^(boat)(.*)({a})'.format( - a = typ + a = typ.replace('+'.'\+') ) testert = re.compile(str1) if testert.match(line.lower()):