Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 1 file changed
  • 0 comments
  • 1 contributor

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  scripts/generate_stats.py
4  scripts/generate_stats.py
@@ -8,7 +8,7 @@
8 8
 from pylons import g
9 9
 from r2.models import Account, Link, Comment, Vote
10 10
 from r2.lib.db.tdb_sql import get_thing_table, get_rel_table
11  
-from r2.lib.db.operators import asc
  11
+from r2.lib.db.operators import asc, desc
12 12
 from r2.lib.utils import timeago
13 13
 
14 14
 def subreddit_stats(config, ranges):
@@ -129,7 +129,7 @@ def run_stats(f):
129 129
     run_stats(vote_stats)
130 130
     run_stats(ga_stats)
131 131
     print >> sys.stderr, 'finished:', stats
132  
-    g.memcache.set('about_reddit_stats', stats)
  132
+    g.memcache.set('about_reddit_stats', stats, time=60*60*48)
133 133
 
134 134
 def main(config_file):
135 135
     parser = ConfigParser.RawConfigParser()

No commit comments for this range

Something went wrong with that request. Please try again.