remotes/1693045480750635534/spooky-22
Aevann1 2021-10-06 01:13:16 +02:00
parent 2f708e34bd
commit ab4a860524
2 changed files with 3 additions and 3 deletions

View File

@ -735,7 +735,7 @@ def submit_post(v):
options = []
for i in re.finditer('\s*\$([^\$]+)\$\s*', body):
options.append(i.group(1))
body.replace(i.group(0), "")
body = body.replace(i.group(0), "")
body_md = CustomRenderer().render(mistletoe.Document(body))
body_html = sanitize(body_md)

View File

@ -360,8 +360,8 @@
{% for c in p.options %}
<div class="custom-control">
<input type="checkbox" class="custom-control-input" id="{{c.id}}" name="option" {% if c.poll_voted(v) %}checked{% endif %} onchange="post('/vote/comment/<comment_id>/?vote=' + document.getElementById('{{c.id}}').checked);">
<label class="custom-control-label" for="{{c.id}}">{{c.body}} - <a href="/votes?link=t3_{{c.id}}">{c.upvotes} votes</a></label>
<input type="checkbox" class="custom-control-input" id="{{c.id}}" name="option" {% if c.poll_voted(v) %}checked{% endif %} onchange="post('/vote/comment/{{c.id}}/?vote=' + document.getElementById('{{c.id}}').checked);">
<label class="custom-control-label" for="{{c.id}}">{{c.body}} - <a href="/votes?link=t3_{{c.id}}">{{c.upvotes}} votes</a></label>
</div>
{% endfor %}