Change slots odds and display (#178)

This commit is contained in:
outruncolors 2022-01-24 09:34:29 -06:00 committed by GitHub
parent 5f34c6e9d2
commit 1f00eb9ed0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 96 additions and 128 deletions

View file

@ -563,13 +563,10 @@ def api_comment(v):
g.db.add(c)
slots = Slots(g)
slots_check = slots.check_for_slots_command(body, v, c)
if (slots_check['pulled'] == True):
c.slots_result = slots_check['result']
g.db.add(c)
slots.check_for_slots_command(body, v, c)
g.db.commit()
if request.headers.get("Authorization"): return c.json
return render_template("comments.html", v=v, comments=[c])