Skip to content

Commit

Permalink
Merge branch 'hf' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
chasemc committed Mar 18, 2024
2 parents 703415b + d1d828e commit 6afb114
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions socialgene/neo4j/utils/admin_import.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
from pathlib import Path

from socialgene.neo4j.neo4j_element import Node
from socialgene.neo4j.schema.socialgene_modules import SocialgeneModules
from socialgene.utils.logging import log
from socialgene.utils.run_subprocess import run_subprocess
Expand Down Expand Up @@ -110,11 +111,14 @@ def _single_arg_string_builder(input, type):
list: [first_part_of_arg_string, header_path_string, data_glob_string] want mutable because will check in later step for gz and append if needed
"""
cli_label = ""
if len(input.neo4j_label) > 1:
# labels are set in-file
cli_label = ""
if issubclass(input, Node):
if len(input.neo4j_label) > 1:
# labels are set in-file
cli_label = ""
else:
cli_label = f"{input.neo4j_label[0]}="
else:
cli_label = f"{input.neo4j_label[0]}="
cli_label = f"{input.neo4j_label}="
return [
f"--{type}={cli_label}",
f"import/neo4j_headers/{input.header_filename}",
Expand Down

0 comments on commit 6afb114

Please sign in to comment.