projects
/
utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
472bb09
)
formatting (keep below 80 chars)
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 20 Jun 2022 08:59:21 +0000
(09:59 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 20 Jun 2022 08:59:21 +0000
(09:59 +0100)
src/budget_sync/main.py
patch
|
blob
|
history
diff --git
a/src/budget_sync/main.py
b/src/budget_sync/main.py
index f34a22b6c3cd7db5fead530492e4ff1403eabd90..3024835939bb43d6a18620bceb606ad9a5f39e2d 100644
(file)
--- a/
src/budget_sync/main.py
+++ b/
src/budget_sync/main.py
@@
-53,14
+53,14
@@
def print_budget_then_children(indent, nodes, bug_id):
"""
bug = nodes[bug_id]
"""
bug = nodes[bug_id]
- print("bug #%5d %s
budget %5s excltasks %5s sub_tot %s paid_tot
%s" %
+ print("bug #%5d %s
budget %6s excltasks %6s s %s p
%s" %
(bug.bug.id, ' ' * (indent*4),
str(bug.fixed_budget_including_subtasks),
str(bug.fixed_budget_excluding_subtasks),
str(bug.submitted_including_subtasks),
str(bug.paid_including_subtasks)))
(bug.bug.id, ' ' * (indent*4),
str(bug.fixed_budget_including_subtasks),
str(bug.fixed_budget_excluding_subtasks),
str(bug.submitted_including_subtasks),
str(bug.paid_including_subtasks)))
-
# print(repr(bug))
# print(repr(bug))
+
for child in bug.immediate_children:
if (str(child.budget_including_subtasks) == "0" and
str(child.budget_excluding_subtasks) == "0"):
for child in bug.immediate_children:
if (str(child.budget_including_subtasks) == "0" and
str(child.budget_excluding_subtasks) == "0"):