Skip to content

Commit 56c6fc7

Browse files
committed
Add coment
1 parent 9849455 commit 56c6fc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

caltechdata_api/get_metadata.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from caltechdata_api import decustomize_schema
55

66
def get_metadata(idv,production=True):
7+
# Returns just DataCite metadata
78

89
if production==True:
910
api_url = "https://data.caltech.edu/api/record/"
@@ -17,8 +18,8 @@ def get_metadata(idv,production=True):
1718
if not 'metadata' in r_data:
1819
raise AssertionError('expected as metadata property in response, got '+r_data)
1920
metadata = r_data['metadata']
20-
metadata = decustomize_schema(metadata)
2121

22+
metadata = decustomize_schema(metadata)
2223
try:
2324
assert schema40.validate(metadata)
2425
except AssertionError:

0 commit comments

Comments
 (0)