forked from MarseyWorld/MarseyWorld
fgd
parent
76ae5a20c2
commit
dec1f0d8ab
|
@ -361,8 +361,6 @@ class Comment(Base):
|
||||||
amount = randint(0, 3)
|
amount = randint(0, 3)
|
||||||
self.upvotes += amount
|
self.upvotes += amount
|
||||||
g.db.add(self)
|
g.db.add(self)
|
||||||
self.author.coins += amount
|
|
||||||
g.db.add(self.author)
|
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
|
|
||||||
for c in self.options:
|
for c in self.options:
|
||||||
|
|
|
@ -380,8 +380,6 @@ class Submission(Base):
|
||||||
self.views += amount*random.randint(3, 5)
|
self.views += amount*random.randint(3, 5)
|
||||||
self.upvotes += amount
|
self.upvotes += amount
|
||||||
g.db.add(self)
|
g.db.add(self)
|
||||||
self.author.coins += amount
|
|
||||||
g.db.add(self.author)
|
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
|
|
||||||
for c in self.options:
|
for c in self.options:
|
||||||
|
|
|
@ -228,25 +228,25 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<marquee class="train train1" direction="left" scrollamount=10 width="100%">
|
<marquee class="train train1" direction="left" scrollamount=10 width="100%">
|
||||||
<img alt=":#marseyscooter:" class="scooterimg mirrored" src="/static/assets/images/emojis/marseyscooter.webp?a=1008">
|
<img alt=":#marseyscooter:" class="scooterimg" src="/static/assets/images/emojis/marseyscooter.webp?a=1008">
|
||||||
</marquee>
|
</marquee>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if p.award_count("scooter") > 1 %}
|
{% if p.award_count("scooter") > 1 %}
|
||||||
<marquee class="train train2" direction="right" scrollamount=10 width="100%">
|
<marquee class="train train2" direction="right" scrollamount=10 width="100%">
|
||||||
<img alt=":#marseyscooter:" class="scooterimg" src="/static/assets/images/emojis/marseyscooter.webp?a=1008">
|
<img alt=":#marseyscooter:" class="scooterimg mirrored" src="/static/assets/images/emojis/marseyscooter.webp?a=1008">
|
||||||
</marquee>
|
</marquee>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if p.award_count("scooter") > 2 %}
|
{% if p.award_count("scooter") > 2 %}
|
||||||
<marquee class="train train3" direction="left" scrollamount=10 width="100%">
|
<marquee class="train train3" direction="left" scrollamount=10 width="100%">
|
||||||
<img alt=":#marseyscooter:" class="scooterimg mirrored" src="/static/assets/images/emojis/marseyscooter.webp?a=1008">
|
<img alt=":#marseyscooter:" class="scooterimg" src="/static/assets/images/emojis/marseyscooter.webp?a=1008">
|
||||||
</marquee>
|
</marquee>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if p.award_count("scooter") > 3 %}
|
{% if p.award_count("scooter") > 3 %}
|
||||||
<marquee class="train train4" direction="right" scrollamount=10 width="100%">
|
<marquee class="train train4" direction="right" scrollamount=10 width="100%">
|
||||||
<img alt=":#marseyscooter:" class="scooterimg" src="/static/assets/images/emojis/marseyscooter.webp?a=1008">
|
<img alt=":#marseyscooter:" class="scooterimg mirrored" src="/static/assets/images/emojis/marseyscooter.webp?a=1008">
|
||||||
</marquee>
|
</marquee>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue