Skip to content

Commit

Permalink
fix: tricky check
Browse files Browse the repository at this point in the history
  • Loading branch information
aMahanna committed Aug 16, 2024
1 parent 07ce3a7 commit 2cd3f5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adbnx_adapter/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def networkx_to_arangodb(
)

# 2. Insert batch of nodes
if i % node_batch_size == 0:
if i and i % node_batch_size == 0:
self.__insert_adb_docs(
spinner_progress, adb_docs, use_async, **adb_import_kwargs
)
Expand Down Expand Up @@ -401,7 +401,7 @@ def networkx_to_arangodb(
)

# 2. Insert batch of edges
if i % edge_batch_size == 0:
if i and i % edge_batch_size == 0:
self.__insert_adb_docs(
spinner_progress, adb_docs, use_async, **adb_import_kwargs
)
Expand Down

0 comments on commit 2cd3f5e

Please sign in to comment.