Skip to content

Commit

Permalink
Making tips page compact due to Reddit limit
Browse files Browse the repository at this point in the history
  • Loading branch information
vindimy committed Jan 21, 2014
1 parent 8bfa8b1 commit 999276d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/conf-sample/db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,5 @@ sql:
limit: 75
tips:
sql_set: "SET @rank=0"
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"
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"
limit: 10000
2 changes: 1 addition & 1 deletion src/ctb/ctb_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def update_tips(ctb=None):
for t in tips:
values = []
for k in tips.keys():
values.append(format_value(t, k, '', ctb))
values.append(format_value(t, k, '', ctb, compact=True))
tip_list += ("|".join(values)) + "\n"

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

0 comments on commit 999276d

Please sign in to comment.