Commit 97f511a 1 parent e77799c commit 97f511a Copy full SHA for 97f511a
File tree 1 file changed +8
-2
lines changed
helix_fhir_client_sdk/graph
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -721,7 +721,10 @@ async def _get_resources_by_parameters_async(
721
721
else :
722
722
result = result2
723
723
if result :
724
- all_result .append (result )
724
+ if all_result :
725
+ all_result .append (result )
726
+ else :
727
+ all_result = result
725
728
non_cached_bundle_entry : BundleEntry
726
729
for non_cached_bundle_entry in result .get_bundle_entries ():
727
730
if non_cached_bundle_entry .resource :
@@ -739,7 +742,10 @@ async def _get_resources_by_parameters_async(
739
742
)
740
743
741
744
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
743
749
elif cached_response :
744
750
all_result = cached_response
745
751
assert all_result
You can’t perform that action at this time.
0 commit comments