Skip to content

Commit

Permalink
commit delete library on overwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
gtfierro committed Nov 22, 2024
1 parent 5b9a95b commit e444e82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions buildingmotif/dataclasses/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def _clear_library(cls, library: DBLibrary) -> None:
bm = get_building_motif()
for template in library.templates: # type: ignore
bm.session.delete(template)
bm.session.commit()

# TODO: load library from URI? Does the URI identify the library uniquely?
# TODO: can we deduplicate shape graphs? use hash of graph?
Expand Down

0 comments on commit e444e82

Please sign in to comment.