remotes/1693045480750635534/spooky-22
Aevann1 2022-01-25 03:25:49 +02:00
parent e686587fc8
commit 2c3dadc67c
4 changed files with 2 additions and 5 deletions

View File

@ -44,7 +44,6 @@ class Comment(Base):
body_html = Column(String)
ban_reason = Column(String)
slots_result = Column(String)
slots_text = Column(String)
post = relationship("Submission", viewonly=True)
author = relationship("User", primaryjoin="User.id==Comment.author_id")

View File

@ -38,8 +38,7 @@ class Slots:
from_user.coins += reward
self.db.add(from_user)
from_comment.slots_result = symbols
from_comment.slots_text = text
from_comment.slots_result = f'{symbols}<em>{text}</em>'
self.db.add(from_comment)
self.db.commit()

View File

@ -231,7 +231,7 @@
{% endif %}
{% if c.slots_result %}
<span style="position: relative; top: 2px; margin-left: 0.5rem">{{c.slots_result}} <em>{{c.slots_text}}</em></span>
<span style="position: relative; top: 2px; margin-left: 0.5rem">{{c.slots_result}}</span>
{% endif %}
</div>
{% if c.active_flags %}

View File

@ -300,7 +300,6 @@ CREATE TABLE public.comments (
is_pinned_utc integer,
ghost boolean,
slots_result character varying(30),
slots_text character varying(100)
);