Skip to content

Commit

Permalink
Upload to pip fix command line interface
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelrhmanBassiouny committed Jul 1, 2024
1 parent 129ecf0 commit cc9df76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "neem_to_sql"
version = "1.0.5"
version = "1.0.6"
description = "Convert NEEMs database from Mongo to SQL"
readme = "README.md"
authors = [{ name = "Abdelrhman Bassiouny", email = "[email protected]" }]
Expand Down
7 changes: 4 additions & 3 deletions src/neems_to_sql/neems_to_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -2036,8 +2036,8 @@ def parse_arguments():
parser.add_argument("--log_level", "-logl", default="INFO",
help="Log level (DEBUG, INFO, WARNING, ERROR, CRITICAL), Default is INFO")
parser.add_argument("--neem_filters_yaml", "-nfy",
default=os.path.join(os.getcwd(), "my_neem_filters.yaml"), type=str,
help="YAML file containing the neem filters, Default is my_neem_filters.yaml")
default=None, type=str,
help="YAML file containing the neem filters, Default is None")
return parser.parse_args()


Expand Down Expand Up @@ -2132,9 +2132,10 @@ def get_neem_filters_from_yaml(neem_filters_yaml: Optional[str] = None) -> dict:
LOGGER.error(exc)
raise
else:
filters = None
filters = {'visibility': 'True'}
return filters


def main():
# Parse command line arguments
args = parse_arguments()
Expand Down

0 comments on commit cc9df76

Please sign in to comment.