Skip to content

Commit

Permalink
Merge pull request #596 from rhelmer/bug751298-nightly_builds
Browse files Browse the repository at this point in the history
bug 751298 - run for yesterday not today
  • Loading branch information
rhelmer committed May 17, 2012
2 parents e35a52f + bbdabc1 commit 6ee9a0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion socorro/cron/jobs/nightly_builds.py
@@ -1,3 +1,4 @@
import datetime
from socorro.cron.crontabber import PostgresBackfillCronApp


Expand All @@ -10,4 +11,5 @@ class NightlyBuildsCronApp(PostgresBackfillCronApp):

def run(self, connection, date):
cursor = connection.cursor()
cursor.callproc('update_nightly_builds', [date.date()])
yesterday = date - datetime.timedelta(days=1)
cursor.callproc('update_nightly_builds', [yesterday.date()])

0 comments on commit 6ee9a0c

Please sign in to comment.