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

Method get_column

memory_graph/html_table.py:111–113  ·  view source on GitHub ↗

Get the number of columns in the table.

(self)

Source from the content-addressed store, hash-verified

109 self.add_column(f'<TD BORDER="{border}" {r}>...</TD>')
110 self.col_count += 1
111
112 def html_table_frame(self, border, color, line_color='black', spacing=5):
113 """ Helper function to add the HTML table frame to the string s setting the 'border' and 'color'. """
114 s = f'<\n<TABLE BORDER="{border}" CELLBORDER="1" CELLSPACING="{spacing}" CELLPADDING="0" BGCOLOR="{color}" COLOR="{line_color}" PORT="table">\n'
115 s += ''.join('<TR>' + ''.join(cell for cell in (reversed(row) if self.columns_reversed else row)) + '</TR>\n'
116 for row in (reversed(self.rows) if self.rows_reversed else self.rows))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected