Merge #380 Please include the state name, even in the API json.

This commit is contained in:
Matt Prahl
2017-03-02 17:05:35 +00:00

View File

@@ -278,6 +278,7 @@ class ModuleBuild(MBSBase):
return {
"id": self.id,
"state": self.state,
'state_name': INVERSE_BUILD_STATES[self.state],
'state_reason': self.state_reason,
"owner": self.owner,
"name": self.name,