Skip to content

Commit

Permalink
Merge pull request LineaLabs#558 from LineaLabs/remove-db-field-in-api
Browse files Browse the repository at this point in the history
removed db access in catalog
  • Loading branch information
saulshanabrook committed Mar 30, 2022
2 parents 08bfc2e + 5f415b3 commit b7e674f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lineapy/graph_reader/apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,8 @@ class LineaCatalog:
- The export is pretty limited right now and we should expand later.
"""

db: RelationalLineaDB

def __init__(self, db):
self.db = db
db_artifacts: List[ArtifactORM] = self.db.get_all_artifacts()
db_artifacts: List[ArtifactORM] = db.get_all_artifacts()
self.artifacts: List[LineaArtifact] = []
for db_artifact in db_artifacts:
l_artifact = LineaArtifact(
Expand Down

0 comments on commit b7e674f

Please sign in to comment.