cvvc
parent
e686587fc8
commit
2c3dadc67c
|
@ -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")
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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 %}
|
||||
|
|
|
@ -300,7 +300,6 @@ CREATE TABLE public.comments (
|
|||
is_pinned_utc integer,
|
||||
ghost boolean,
|
||||
slots_result character varying(30),
|
||||
slots_text character varying(100)
|
||||
);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue