Skip to content

Commit d84c2e7

Browse files
committed
Minimize log messages
1 parent abb86c3 commit d84c2e7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

caltechdata_api/decustomize_schema.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,7 @@ def decustomize_schema(json_record,pass_emails=False,pass_media=False):
136136
#If "Submitted' date type was not manually set in metadata
137137
#Or 'Issued was not manually set
138138
#We want to save the entire publicationDate
139-
if 'Submitted' in datetypes or 'Issued' in datetypes:
140-
# Custom Dates Present-Dropping TIND Publication Date
141-
else:
139+
if 'Submitted' or 'Issued' not in datetypes:
142140
if 'dates' in json_record:
143141
json_record['dates'].append({"date":json_record['publicationDate'],\
144142
"dateType": "Submitted"})

0 commit comments

Comments
 (0)