Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

...
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/generate_stats.py
4 scripts/generate_stats.py
View
@@ -8,7 +8,7 @@
from pylons import g
from r2.models import Account, Link, Comment, Vote
from r2.lib.db.tdb_sql import get_thing_table, get_rel_table
-from r2.lib.db.operators import asc
+from r2.lib.db.operators import asc, desc
from r2.lib.utils import timeago
def subreddit_stats(config, ranges):
@@ -129,7 +129,7 @@ def run_stats(f):
run_stats(vote_stats)
run_stats(ga_stats)
print >> sys.stderr, 'finished:', stats
- g.memcache.set('about_reddit_stats', stats)
+ g.memcache.set('about_reddit_stats', stats, time=60*60*48)
def main(config_file):
parser = ConfigParser.RawConfigParser()

No commit comments for this range

Something went wrong with that request. Please try again.