Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
if self.data.build_group_id:
return self.backend.builds.groups.get_by_id(self.data.build_group_id)
- @property
- def state(self):
- return self.data.state
-
def is_broken(self):
return self.state == "broken"
id integer NOT NULL,
uuid uuid DEFAULT gen_random_uuid() NOT NULL,
pkg_id integer NOT NULL,
- state text DEFAULT 'building'::text NOT NULL,
severity text,
message text,
created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
"priority" : build.priority,
"score" : build.score,
"severity" : build.severity,
- "state" : build.state,
"sup_arches" : build.supported_arches,
"time_created" : build.created.isoformat(),
"type" : build.type,