Skip to content

Commit e04387f

Browse files
committed
Somehow the line setting the filepointer to 0 has gone missing.
1 parent e4c2293 commit e04387f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

optimade/server/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def read_array_header(fobj):
100100
"name": numpy_meta[2].name,
101101
"itemsize": numpy_meta[2].itemsize,
102102
}
103+
f.seek(0)
103104
partial_data_coll.insert([{"data": f, "filename": filename, "metadata": metadata}]) # type: ignore[list-item] # Todo : Perhaps this can be reduced to a single insert statement.
104105

105106
def load_entries(endpoint_name: str, endpoint_collection: EntryCollection):

0 commit comments

Comments
 (0)