diff --git a/metacore/services.py b/metacore/services.py index b9783e3e192819429ebb7eef3c80458c102136db..2a626fb595d06686e51f20c5c33778d9f0170d86 100644 --- a/metacore/services.py +++ b/metacore/services.py @@ -40,7 +40,8 @@ def get_crossref_test(cursor='*'): citables = [parse_crossref_citable(it) for it in citables_json] # Parser returns None if there's an error - errors = any([not i for i in citables if not i]) + errors = any([not i for i in citables if i == False]) + orig_citables = citables citables = [citable for citable in citables if citable is not None] # Mass insert in database (will fail on encountering existing documents