Pyflakes fixes.
This commit is contained in:
parent
286e263463
commit
76edce6b21
@ -1,19 +1,23 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from datetime import datetime
|
||||
import reviewday
|
||||
from reviewday.gerrit import reviews as gerrit_reviews
|
||||
from reviewday.util import create_report
|
||||
from reviewday.launchpad import LaunchPad
|
||||
from reviewday.mergeprop import MergeProp
|
||||
from reviewday.smokestack import SmokeStack
|
||||
|
||||
lp = reviewday.LaunchPad()
|
||||
smoker = reviewday.SmokeStack('http://smokestack.openstack.org/jobs.json?limit=10000')
|
||||
lp = LaunchPad()
|
||||
smoker = SmokeStack('http://smokestack.openstack.org/jobs.json?limit=10000')
|
||||
|
||||
projects = {}
|
||||
|
||||
for project in ['nova', 'glance', 'keystone', 'swift', 'quantum', 'cinder']:
|
||||
if project not in projects:
|
||||
projects[project] = []
|
||||
for review in reviewday.reviews(project):
|
||||
for review in gerrit_reviews(project):
|
||||
try:
|
||||
mp = reviewday.MergeProp(lp, smoker, review)
|
||||
mp = MergeProp(lp, smoker, review)
|
||||
projects[project].append(mp)
|
||||
except:
|
||||
print 'Error creating merge prop %s' % review
|
||||
@ -21,4 +25,4 @@ for project in ['nova', 'glance', 'keystone', 'swift', 'quantum', 'cinder']:
|
||||
|
||||
dts = str(datetime.utcnow())[0:19]
|
||||
name_space = {"projects": projects, "dts": dts}
|
||||
reviewday.create_report(name_space)
|
||||
create_report(name_space)
|
||||
|
@ -1,5 +0,0 @@
|
||||
from gerrit import reviews
|
||||
from util import create_report
|
||||
from launchpad import LaunchPad
|
||||
from mergeprop import MergeProp
|
||||
from smokestack import SmokeStack
|
@ -18,7 +18,7 @@ def fail_status(job_data, token):
|
||||
color = '00AA00'
|
||||
else:
|
||||
color = '000000'
|
||||
return output % locals()
|
||||
return output % color
|
||||
|
||||
|
||||
def review_feedback(mp):
|
||||
|
Loading…
x
Reference in New Issue
Block a user