Skip to content

Commit

Permalink
another column format
Browse files Browse the repository at this point in the history
  • Loading branch information
hrshdhgd committed Feb 29, 2024
1 parent b50df91 commit d30fc45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/oaklib/utilities/writers/change_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,13 @@ def hand_synonym_predicate_change(self, value):
# Create rows for the table
rows = [
f"| {self.oi.label(change.about_node)} ({change.about_node}) \
| {change.old_value} | {change.new_value} | {change.target} |"
| {self.oi.label(change.old_value)} ({change.old_value}) \
| {self.oi.label(change.new_value)} ({change.new_value}) | {change.target} |"
for change in value
]

# Define the header for the table
header = "| Label (ID) | Old Predicate | New Predicate | Synonym |"
header = "| Label (ID) | Old Predicate (ID) | New Predicate (ID) | Synonym |"

# Write the "Synonym Predicate Changed" section as a markdown table
self.write_markdown_table(f"Synonym predicates changed: {len(rows)}", header, rows)
Expand Down

0 comments on commit d30fc45

Please sign in to comment.