From b4c8209cd703376aada9f3366a5adc9e931539b6 Mon Sep 17 00:00:00 2001 From: Carlos Vega <carlos.vega@.uni.lu> Date: Mon, 1 Oct 2018 17:16:44 +0200 Subject: [PATCH] Fixed problem in commit 47b22f88. Tests didn't fail on my machine. God save continuous integration. Tests passed --- smash/web/models/study_subject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smash/web/models/study_subject.py b/smash/web/models/study_subject.py index cc8b74af..38541389 100644 --- a/smash/web/models/study_subject.py +++ b/smash/web/models/study_subject.py @@ -163,7 +163,7 @@ class StudySubject(models.Model): matches, reminder = [], [] for part in parts: chunks = part.strip().split('-') - if chunks == 2: + if len(chunks) == 2: letter, number = chunks tupl = (letter, int(number)) else: -- GitLab