Skip to content

Commit 97f511a

Browse files
committed
INC-240 - another one
1 parent e77799c commit 97f511a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

helix_fhir_client_sdk/graph/simulated_graph_processor_mixin.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,10 @@ async def _get_resources_by_parameters_async(
721721
else:
722722
result = result2
723723
if result:
724-
all_result.append(result)
724+
if all_result:
725+
all_result.append(result)
726+
else:
727+
all_result = result
725728
non_cached_bundle_entry: BundleEntry
726729
for non_cached_bundle_entry in result.get_bundle_entries():
727730
if non_cached_bundle_entry.resource:
@@ -739,7 +742,10 @@ async def _get_resources_by_parameters_async(
739742
)
740743

741744
if cached_response:
742-
all_result.append(cached_response)
745+
if all_result:
746+
all_result.append(cached_response)
747+
else:
748+
all_result = cached_response
743749
elif cached_response:
744750
all_result = cached_response
745751
assert all_result

0 commit comments

Comments
 (0)