Skip to content

Commit

Permalink
Merge pull request #822 from MolSSI/cache_fix
Browse files Browse the repository at this point in the history
Fix missing client on cached dataset records
  • Loading branch information
bennybp authored Apr 24, 2024
2 parents e1ba960 + ae8fc9e commit ca892ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions qcportal/qcportal/dataset_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,9 @@ def fetch_records(

# Check if we have any cached records
cached_records = self._cache_data.get_dataset_records(missing_entries, [spec_name])
for _, _, cr in cached_records:
cr.propagate_client(self._client)

records_batch.extend(cached_records)

# what we need to fetch from the server
Expand Down Expand Up @@ -1171,6 +1174,9 @@ def iterate_records(

# Check if we have any cached records
cached_records = self._cache_data.get_dataset_records(missing_entries, [spec_name])
for _, _, cr in cached_records:
cr.propagate_client(self._client)

records_batch.extend(cached_records)

# what we need to fetch from the server
Expand Down

0 comments on commit ca892ba

Please sign in to comment.