Skip to content
Snippets Groups Projects
Commit 8efe9f28 authored by Ben Adida's avatar Ben Adida
Browse files

not sure what I was thinking with .startsWith

parent 1d013c84
No related branches found
No related tags found
No related merge requests found
...@@ -256,7 +256,7 @@ class Election(HeliosModel): ...@@ -256,7 +256,7 @@ class Election(HeliosModel):
continue continue
# abort saving if bad URL # 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 return
self.questions = questions self.questions = questions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment