Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/generate_stats.py
View
4 scripts/generate_stats.py
@@ -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.