From f509961bb747aaafd8d2ab26ec65cf4ebccd64c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Finn=20=C3=85rup=20Nielsen?= Date: Tue, 14 May 2024 22:25:49 +0200 Subject: [PATCH] Fix #2505 command-line arxiv-to-qs Command-line version did not work for arxiv-to-quickstatements. --- scholia/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scholia/__main__.py b/scholia/__main__.py index 1450d46b3..07c318b72 100644 --- a/scholia/__main__.py +++ b/scholia/__main__.py @@ -26,6 +26,7 @@ import os from . import arxiv +from .qs import paper_to_quickstatements from .query import orcid_to_qs from .utils import string_to_type @@ -48,7 +49,7 @@ def main(): if arguments['arxiv-to-quickstatements']: arxiv_id = arguments[''] metadata = arxiv.get_metadata(arxiv_id) - quickstatements = arxiv.metadata_to_quickstatements(metadata) + quickstatements = paper_to_quickstatements(metadata) os.write(output_file, quickstatements.encode(output_encoding)) elif arguments['orcid-to-q']: