Skip to content

Commit

Permalink
fixed a potential failure in cron job
Browse files Browse the repository at this point in the history
  • Loading branch information
progrium committed Mar 26, 2010
1 parent b689145 commit ecc3c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Expand Up @@ -148,7 +148,7 @@ def post(self):
if not memcache.get('reset_%s' % profile.key().id()):
profile.to_give = MONTHLY_POINTS
profile.gave_this_month = 0
profile.received_month = 0
profile.received_this_month = 0
profile.put()
memcache.set('reset_%s' % profile.key().id(), True, 3600*24)

Expand Down

0 comments on commit ecc3c0b

Please sign in to comment.