Compare commits

..

1 Commits

Author SHA1 Message Date
7be62914b0 refactor quest template database calls 2018-07-16 14:57:05 -04:00

View File

@ -107,30 +107,6 @@ def num_votes(option_id):
return db.get_num_votes(option_id)
@app.template_filter("split_options")
def split_options(options):
"""
Splits a polls options into a list.
"""
return options.split("\n")
@app.template_filter("get_rolls")
def get_rolls(post_id):
"""
Gets the dice rolls for the template.
"""
return db.get_dice_rolls(post_id=post_id)
@app.template_filter("get_options")
def get_options(post_id):
"""
Gets the poll options for the template.
"""
return db.get_poll_options(post_id=post_id)
@app.after_request
def minify(res):
"""