Skip to content

Commit

Permalink
Actually exclude raffle from all
Browse files Browse the repository at this point in the history
  • Loading branch information
kochman committed Dec 8, 2017
1 parent 61f101f commit 4af4fc2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions app.py
Expand Up @@ -241,7 +241,8 @@ def generate():


# if we only want responses to some questions, include only those # if we only want responses to some questions, include only those
for key, value in form_js.items(): for key, value in form_js.items():
if question_prefix is None or key.startswith(question_prefix): if (question_prefix is None and not key.startswith('raffle')) \
or (question_prefix is not None and key.startswith(question_prefix)):
question = get_question_for_key(key) question = get_question_for_key(key)
if question not in header: if question not in header:
header.append(question) header.append(question)
Expand All @@ -263,7 +264,8 @@ def generate():


# if we only want responses to some questions, include only those # if we only want responses to some questions, include only those
for key, value in form_js.items(): for key, value in form_js.items():
if question_prefix is None or key.startswith(question_prefix): if (question_prefix is None and not key.startswith('raffle')) \
or (question_prefix is not None and key.startswith(question_prefix)):
question = get_question_for_key(key) question = get_question_for_key(key)
sub[question] = value sub[question] = value


Expand Down Expand Up @@ -315,7 +317,8 @@ def export_xlsx():


# if we only want responses to some questions, include only those # if we only want responses to some questions, include only those
for key, value in form_js.items(): for key, value in form_js.items():
if question_prefix is None or key.startswith(question_prefix): if (question_prefix is None and not key.startswith('raffle')) \
or (question_prefix is not None and key.startswith(question_prefix)):
question = get_question_for_key(key) question = get_question_for_key(key)
if question not in header: if question not in header:
header.append(question) header.append(question)
Expand Down Expand Up @@ -345,7 +348,8 @@ def export_xlsx():


# if we only want responses to some questions, include only those # if we only want responses to some questions, include only those
for key, value in form_js.items(): for key, value in form_js.items():
if question_prefix is None or key.startswith(question_prefix): if (question_prefix is None and not key.startswith('raffle')) \
or (question_prefix is not None and key.startswith(question_prefix)):
question = get_question_for_key(key) question = get_question_for_key(key)
sub[question] = value sub[question] = value


Expand Down

0 comments on commit 4af4fc2

Please sign in to comment.