MCPcopy Create free account
hub / github.com/bterwijn/memory_graph / add_value

Method add_value

memory_graph/html_table.py:78–84  ·  view source on GitHub ↗

Helper function to add 'value' to the table.

(self, value, rounded=False, border=1)

Source from the content-addressed store, hash-verified

76 self.add_value(child, rounded, border)
77
78 def add_value(self, value, rounded=False, border=1):
79 """ Helper function to add 'value' to the table. """
80 self.check_add_new_line()
81 r = ' STYLE="ROUNDED"' if rounded else ''
82 self.html += f'<TD BORDER="{border}"{r}>{format_string(value, not rounded)}</TD>'
83 self.is_empty = False
84 self.col_count += 1
85
86 def add_reference(self, node, child, rounded=False, border=1, dashed=False):
87 """ Helper function to add a reference to the table. """

Callers 8

add_entryMethod · 0.95
to_stringMethod · 0.95
html_table.pyFile · 0.45
fill_html_tableMethod · 0.45
add_index_or_nameMethod · 0.45
fill_html_tableMethod · 0.45

Calls 2

check_add_new_lineMethod · 0.95
format_stringFunction · 0.85

Tested by

no test coverage detected