Skip to content
Browse files

Merge pull request #596 from rhelmer/bug751298-nightly_builds

bug 751298 - run for yesterday not today
  • Loading branch information...
2 parents e35a52f + bbdabc1 commit 6ee9a0ca9698da02b03772159b1f5a0aac90d943 @rhelmer rhelmer committed May 16, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 socorro/cron/jobs/nightly_builds.py
View
4 socorro/cron/jobs/nightly_builds.py
@@ -1,3 +1,4 @@
+import datetime
from socorro.cron.crontabber import PostgresBackfillCronApp
@@ -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.
Something went wrong with that request. Please try again.