Compare commits

...

2 Commits

3 changed files with 8 additions and 2 deletions

View File

@ -451,7 +451,7 @@ def execute_lawlz_actions(v:User, p:Submission):
if SITE_NAME != 'rDrama': return
if not FEATURES['PINS']: return
p.stickied_utc = int(time.time()) + 86400
p.stickied = v.username
p.stickied = AUTOJANNY_ID
p.distinguish_level = 6
p.flair = filter_emojis_only(":ben10: Required Reading")
pin_time = 'for 1 day'

View File

@ -924,6 +924,10 @@ def submit_post(v:User, sub=None):
execute_lawlz_actions(v, post)
if SITE == 'rdrama.net' and v.id in (IMPASSIONATA_ID, PIZZASHILL_ID, 2008):
p.stickied_utc = int(time.time()) + 3600
p.stickied = AUTOJANNY_ID
cache.delete_memoized(frontlist)
cache.delete_memoized(userpagelisting)

View File

@ -10,7 +10,8 @@
<th onclick="sort_table(1)">Name</th>
<th onclick="sort_table(2)">Wins</th>
<th onclick="sort_table(3)">Bets</th>
<th onclick="sort_table(4)">Winnings</th>
<th onclick="sort_table(4)">Ratio</th>
<th onclick="sort_table(5)">Winnings</th>
</tr>
</thead>
<tbody>
@ -21,6 +22,7 @@
<td data-sort-key="{{user.username.lower() if user else ''}}">{%- include 'user_in_table.html' -%}</td>
<td>{{r[1]}}</td>
<td>{{r[2]}}</td>
<td>{{r[1]/r[2]}}</td>
<td>{{r[3]}}</td>
</tr>
{% endfor %}