Compare commits
1 Commits
1c4a7971d2
...
7be62914b0
Author | SHA1 | Date | |
---|---|---|---|
7be62914b0 |
24
anonkun.py
24
anonkun.py
|
@ -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):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user