Skip to content

Commit ae96edb

Browse files
committed
Fix typo in parameter name
1 parent 29d36fb commit ae96edb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

flask_app/sp_cache/solr_controller.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def delete_collection_occurrences(collection_id, identifiers):
112112
sp_solr.delete(
113113
q=[
114114
'collection_id:{}'.format(collection_id),
115-
'identiifer:{}'.format(identifiers)
115+
'identifier:{}'.format(identifiers)
116116
]
117117
)
118118

@@ -130,10 +130,8 @@ def get_specimen(collection_id, identifier):
130130
"""
131131
sp_solr = get_specimen_solr()
132132
rec = sp_solr.search(
133-
q=[
134-
'collection_id:{}'.format(collection_id),
135-
'identiifer:{}'.format(identifier)
136-
]
133+
'identifier:{}'.format(identifier),
134+
fq='collection_id:{}'.format(collection_id)
137135
)
138136
if rec.hits > 0:
139137
return SpecimenRecord(rec.docs[0])

0 commit comments

Comments
 (0)