Skip to content

Commit

Permalink
cleanup: create_graph
Browse files Browse the repository at this point in the history
  • Loading branch information
aMahanna committed Dec 27, 2023
1 parent 44dd28f commit 3ca00eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arango_datasets/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,8 @@ def load(
self.__import_bulk(col, load_function(file))

if edge_definitions := dataset_contents.get("edge_definitions"):
graph_name = dataset_contents["graph_name"]
self.user_db.delete_graph(graph_name, ignore_missing=True)
self.user_db.create_graph(graph_name, edge_definitions)
self.user_db.delete_graph(dataset_name, ignore_missing=True)
self.user_db.create_graph(dataset_name, edge_definitions)

def __get_response(self, url: str, timeout: int = 60) -> requests.Response:
"""Wrapper around requests.get() with a progress bar.
Expand Down

0 comments on commit 3ca00eb

Please sign in to comment.