Skip to content

Commit 999276d

Browse files
committed
Making tips page compact due to Reddit limit
1 parent 8bfa8b1 commit 999276d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/conf-sample/db.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,5 +106,5 @@ sql:
106106
limit: 75
107107
tips:
108108
sql_set: "SET @rank=0"
109-
sql_list: "SELECT @rank :=@rank+1 AS num, created_utc, from_user, to_user, coin_val, coin, fiat_val, fiat, subreddit, msg_link FROM t_action WHERE type='givetip' AND state='completed' ORDER BY created_utc ASC LIMIT %s"
109+
sql_list: "SELECT @rank :=@rank+1 AS num, created_utc, from_user, to_user, coin_val, coin, fiat_val, fiat, subreddit FROM t_action WHERE type='givetip' AND state='completed' ORDER BY created_utc ASC LIMIT %s"
110110
limit: 10000

src/ctb/ctb_stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def update_tips(ctb=None):
8888
for t in tips:
8989
values = []
9090
for k in tips.keys():
91-
values.append(format_value(t, k, '', ctb))
91+
values.append(format_value(t, k, '', ctb, compact=True))
9292
tip_list += ("|".join(values)) + "\n"
9393

9494
lg.debug("update_tips(): updating subreddit '%s', page '%s'" % (ctb.conf.reddit.stats.subreddit, ctb.conf.reddit.stats.page_tips))

0 commit comments

Comments
 (0)