Skip to content

Commit

Permalink
Merge branch 'add-execlude-param' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
davidschober authored Oct 13, 2024
2 parents b133bb0 + afb29a7 commit 1abe7e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 28 deletions.
4 changes: 2 additions & 2 deletions nuldc/dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def dump_collection(col_id):
"query": f"collection.id:{col_id}",
"size": "25",
"sort": "id:asc",
"_source_excludes":"embedding"}
"_source_excludes": "embedding"}
try:
data = helpers.get_search_results(API,
"works",
Expand All @@ -77,7 +77,7 @@ def dump_collection(col_id):
filename = f"{slugify(col_title)}-{col_id}"
save_files(filename, data)
except Exception as e:
sys.exit(f"Error with collection {col_id}: {e} \n\n CONTEXT:")
sys.exit(f"Error with collection {col_id}: {e} ")


def dump_collections(query_string):
Expand Down
26 changes: 1 addition & 25 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nuldc"
version = "0.10.4"
version = "0.11.0"
description = ""
authors = ["davidschober <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 1abe7e4

Please sign in to comment.