Skip to content

Commit

Permalink
include tooltips in entity schema generate files (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndamania00 authored Oct 25, 2024
1 parent 7d7ee58 commit 5bfd253
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion liminal/entity_schemas/generate_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def generate_all_entity_schema_files(
dropdown_classname = dropdown_name_to_classname_map[col.dropdown_link]
dropdowns.append(dropdown_classname)
column_strings.append(
f"""{tab}{col_name}: SqlColumn = Column(name="{col.name}", type={str(col.type)}, required={col.required}{', is_multi=True' if col.is_multi else ''}{', parent_link=True' if col.parent_link else ''}{f', entity_link="{col.entity_link}"' if col.entity_link else ''}{f', dropdown={dropdown_classname}' if dropdown_classname else ''})"""
f"""{tab}{col_name}: SqlColumn = Column(name="{col.name}", type={str(col.type)}, required={col.required}{', is_multi=True' if col.is_multi else ''}{', parent_link=True' if col.parent_link else ''}{f', entity_link="{col.entity_link}"' if col.entity_link else ''}{f', dropdown={dropdown_classname}' if dropdown_classname else ''}{f', tooltip="{col.tooltip}"' if col.tooltip else ''})"""
)
if col.required and col.type:
init_strings.append(
Expand Down

0 comments on commit 5bfd253

Please sign in to comment.