diff options
author | Elliot Smith <elliot.smith@intel.com> | 2016-01-15 13:01:06 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-15 16:30:01 +0000 |
commit | 798e8b8d03b78929a936c6ea01166209a747ca1f (patch) | |
tree | 682683bdc9c6a3fbe4a8c0d5f7d7b5fb0ad135a8 /bitbake/lib/toaster/orm/models.py | |
parent | c4b50111e9887c4d69f6a8b5fb50824fc44f7128 (diff) | |
download | poky-798e8b8d03b78929a936c6ea01166209a747ca1f.tar.gz |
bitbake: toastergui: code formatting and clean-up
Minor fixes to code formatting and small improvements from
code review.
(Bitbake rev: 2c97f3a5c6ae37de910deb90390c5b856a600c5f)
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/orm/models.py')
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 3dc4d6d891..ac2aa9e469 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -477,15 +477,9 @@ class Build(models.Model): | |||
477 | targets in this build | 477 | targets in this build |
478 | """ | 478 | """ |
479 | targets = self.target_set.all() | 479 | targets = self.target_set.all() |
480 | target_labels = [] | 480 | target_labels = [target.target + |
481 | target_label = None | 481 | (':' + target.task if target.task else '') |
482 | 482 | for target in targets] | |
483 | for target in targets: | ||
484 | target_label = target.target | ||
485 | if target.task: | ||
486 | target_label = target_label + ':' + target.task | ||
487 | target_labels.append(target_label) | ||
488 | |||
489 | target_labels.sort() | 483 | target_labels.sort() |
490 | 484 | ||
491 | return target_labels | 485 | return target_labels |