Skip to content

Commit

Permalink
fix missing status_to_string convertion
Browse files Browse the repository at this point in the history
  • Loading branch information
tardyp committed Apr 19, 2017
1 parent 36f85fa commit efabc4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions smokes/mydashboard.py
Expand Up @@ -8,6 +8,8 @@
from flask import Flask
from flask import render_template

from buildbot.process.results import statusToString

mydashboardapp = Flask('test', root_path=os.path.dirname(__file__))
# this allows to work on the template without having to restart Buildbot
mydashboardapp.config['TEMPLATES_AUTO_RELOAD'] = True
Expand All @@ -27,6 +29,8 @@ def main():
build['properties'] = mydashboardapp.buildbot_api.dataGet(
("builds", build['buildid'], "properties"))

build['results_text'] = statusToString(build['results'])

# Example on how to use requests to get some info from other web servers
code_frequency_url = "https://api.github.com/repos/buildbot/buildbot/stats/code_frequency"
results = requests.get(code_frequency_url)
Expand Down

0 comments on commit efabc4c

Please sign in to comment.