summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_scheduler.py
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-06-12 19:17:56 +0200
committerHolger Levsen <holger@layer-acht.org>2015-06-12 20:02:13 +0200
commitfe9b6335b4876cb8f02a306199ed13e787e2b1f4 (patch)
tree4ecb1b2d9f46bf24e0ccb781b1e4f45831ce6a50 /bin/reproducible_scheduler.py
parentb7198e0e12e5a3a89932f74752640c817cbdf923 (diff)
downloadjenkins.debian.net-fe9b6335b4876cb8f02a306199ed13e787e2b1f4.tar.xz
reproducible: *.py: from datetime import datetime, timedelta instead of all datetime
Diffstat (limited to 'bin/reproducible_scheduler.py')
-rwxr-xr-xbin/reproducible_scheduler.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py
index 1f6500bd..cfa03d00 100755
--- a/bin/reproducible_scheduler.py
+++ b/bin/reproducible_scheduler.py
@@ -301,9 +301,9 @@ def scheduler():
'WHERE s.suite="{suite}"'.format(suite=suite)
now_queued_here[suite] = int(query_db(query)[0][0]) + len(untested[suite]+new[suite]+old[suite])
# schedule packages differently in the queue...
- schedule_packages(untested[suite], datetime.datetime.now())
- schedule_packages(new[suite], datetime.datetime.now()+datetime.timedelta(minutes=-720))
- schedule_packages(old[suite], datetime.datetime.now()+datetime.timedelta(minutes=720))
+ schedule_packages(untested[suite], datetime.now())
+ schedule_packages(new[suite], datetime.now()+timedelta(minutes=-720))
+ schedule_packages(old[suite], datetime.now()+timedelta(minutes=720))
log.info('### Suite ' + suite + ' done ###')
log.info('==============================================================')
# update the scheduled page