From 8efe9f280d15d532237b9a87fcb1edcb2c928a8b Mon Sep 17 00:00:00 2001 From: Ben Adida <ben@adida.net> Date: Sat, 23 Apr 2016 18:00:05 +0000 Subject: [PATCH] not sure what I was thinking with .startsWith --- helios/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helios/models.py b/helios/models.py index 6a0f18f..bece7ca 100644 --- a/helios/models.py +++ b/helios/models.py @@ -256,7 +256,7 @@ class Election(HeliosModel): continue # abort saving if bad URL - if not (answer_url.startsWith("http://") or answer_url.startsWith("https://")): + if not (answer_url[:7] == "http://" or answer_url[:8]== "https://"): return self.questions = questions -- GitLab