Skip to content

Commit

Permalink
also skip cat vars with no constraints for now
Browse files Browse the repository at this point in the history
  • Loading branch information
korikuzma committed Jan 30, 2025
1 parent aed4499 commit fc5c75e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/metakb/load_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ def add_transformed_data(driver: Driver, data: dict) -> None:
loaded_stmt_count = 0

for cv in data.get("categorical_variants", []):
if _failed_to_normalize(cv):
if _failed_to_normalize(cv) or not cv.get("constraints"):
continue

session.execute_write(_add_categorical_variant, cv, ids_in_stmts)
Expand Down

0 comments on commit fc5c75e

Please sign in to comment.