Skip to content

Commit 1e49fb8

Browse files
committed
fix bug introduced by merge with master.
1 parent 3a908bc commit 1e49fb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

optimade/server/entry_collections/entry_collections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def find(
156156
results = self.resource_mapper.deserialize(results)
157157

158158
if single_entry:
159-
raw_results = raw_results[0] if raw_results else None # type: ignore[assignment]
159+
results = results[0] if results else None # type: ignore[assignment]
160160

161161
if data_returned > 1:
162162
raise NotFound(

0 commit comments

Comments
 (0)