Skip to content

Commit

Permalink
Merge pull request #2051 from sweco-begertjanvdb/feature/revision_rep…
Browse files Browse the repository at this point in the history
…ort_include_mark

Feature/revision report include mark
  • Loading branch information
jmcouffin committed Jan 17, 2024
2 parents 12f28b6 + 8ee48d0 commit 9c59712
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,16 @@ def get_comments(self):
if not coreutils.is_blank(comment):
all_comments.add(comment)
return all_comments

def get_all_revision_marks(self):
all_marks = set()
for cloud in self._clouds:
cparam = \
cloud.Parameter[DB.BuiltInParameter.ALL_MODEL_MARK]
mark = cparam.AsString()
if not coreutils.is_blank(mark):
all_marks.add(mark)
return all_marks

def get_revision_numbers(self):
return self._rev_numbers
Expand Down Expand Up @@ -201,4 +211,9 @@ def get_revision_numbers(self):
.format('\n'.join(['\t\t{}'.format(cmt)
for cmt in comments])))

marks = rev_sheet.get_all_revision_marks()
if marks:
print('\n\t\tRevision Marks:\n{}'
.format('\n'.join(['\t\t{}'.format(mrk)
for mrk in marks])))
console.insert_divider()

0 comments on commit 9c59712

Please sign in to comment.