Skip to content

Commit

Permalink
Merge branch 'release/3.0.0' of github.com:eosc-synergy/FAIR_eva into…
Browse files Browse the repository at this point in the history
… release/3.0.0
  • Loading branch information
orviz committed Oct 4, 2024
2 parents 902f8b4 + 8eb93fa commit 0187a5e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/vocabulary.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def _remote_collect(self):
return error_on_request, content

def _local_collect(self):
return self._parse_xml(self, from_file=True)
return self._parse_xml(from_file=True)

def collect(self):
super().__init__(**self._config_items)
Expand Down
1 change: 0 additions & 1 deletion plugins/epos/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ def __init__(self, item_id, oai_base=None, lang="en", config=None, name="epos"):
self.metadata_standard = ast.literal_eval(
self.config[self.name]["metadata_standard"]
)

self.metadata_authentication = ast.literal_eval(
self.config[self.name]["metadata_authentication"]
)
Expand Down
8 changes: 7 additions & 1 deletion scripts/fair-eva.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,10 @@ def get_input_args():
),
)
parser.add_argument(
"-j", "--json", action="store_true", help=("Flag to print the results in JSON format")
"-j",
"--json",
action="store_true",
help=("Flag to print the results in JSON format"),
)
parser.add_argument(
"--totals",
Expand Down Expand Up @@ -468,6 +471,9 @@ def search(keytext):
headers=headers,
)
terms = response.json()
if not terms.get("results", {}):
logging.error("Could not find results for search query: %s" % params)
sys.exit(-2)
number_of_items = len(terms["results"]["distributions"])
table = PrettyTable()
table.field_names = [
Expand Down

0 comments on commit 0187a5e

Please sign in to comment.