From 7afb3a0ecbb918b186c7bf133700c4ec4daffa84 Mon Sep 17 00:00:00 2001 From: Mazztok45 Date: Fri, 9 Feb 2024 11:28:22 +0100 Subject: [PATCH] creating fake ids csv file for software like the one for document --- src/zbmath_rest2oai/fake_dict_sw.py | 6 +++++- src/zbmath_rest2oai/software.csv | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 src/zbmath_rest2oai/software.csv diff --git a/src/zbmath_rest2oai/fake_dict_sw.py b/src/zbmath_rest2oai/fake_dict_sw.py index f20930c..cfee95b 100644 --- a/src/zbmath_rest2oai/fake_dict_sw.py +++ b/src/zbmath_rest2oai/fake_dict_sw.py @@ -1,2 +1,6 @@ def fake_dict_sw(): - return list(range(1, 10)) + with open('software.csv','w') as f: + return f.write(','.join(map(str,list(range(1, 10))))) + +if __name__ == '__main__': + fake_dict_sw() \ No newline at end of file diff --git a/src/zbmath_rest2oai/software.csv b/src/zbmath_rest2oai/software.csv new file mode 100644 index 0000000..68842d8 --- /dev/null +++ b/src/zbmath_rest2oai/software.csv @@ -0,0 +1 @@ +1,2,3,4,5,6,7,8,9 \ No newline at end of file