mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-05 03:38:12 +08:00
Fix NameError for missing query.
This commit is contained in:
@@ -160,7 +160,6 @@ class Config(object):
|
||||
def koji_config(self, s):
|
||||
self._koji_config = str(s)
|
||||
|
||||
|
||||
@property
|
||||
def koji_profile(self):
|
||||
"""Koji URL."""
|
||||
|
||||
@@ -233,7 +233,8 @@ class Poller(threading.Thread):
|
||||
log.info(" * internal queue backlog is %i." % backlog)
|
||||
states = sorted(models.BUILD_STATES.items(), key=operator.itemgetter(1))
|
||||
for name, code in states:
|
||||
count = models.ModuleBuild.query.filter_by(state=code).count()
|
||||
query = models.ModuleBuild.query.filter_by(state=code)
|
||||
count = query.count()
|
||||
if count:
|
||||
log.info(" * %i module builds in the %s state." % (count, name))
|
||||
if name == 'build':
|
||||
|
||||
Reference in New Issue
Block a user