Skip to content

Commit 77a0f48

Browse files
committed
Fix db innitialization crash for fhirschema
1 parent cd9f512 commit 77a0f48

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.1.14
2+
3+
- Fix db innitialization crash for fhirschema
4+
15
## 0.1.13
26

37
- Add py.typed marker

aidbox_python_sdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__title__ = "aidbox-python-sdk"
2-
__version__ = "0.1.13"
2+
__version__ = "0.1.14"
33
__author__ = "beda.software"
44
__license__ = "None"
55
__copyright__ = "Copyright 2024 beda.software"

aidbox_python_sdk/db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ async def _get_all_entities_name(self):
140140
query_url = f"{self._settings.APP_INIT_URL}/Entity?type=resource&_elements=id&_count=999"
141141
async with self._client.get(query_url, raise_for_status=True) as resp:
142142
json_resp = await resp.json()
143-
return [entry["resource"]["id"] for entry in json_resp["entry"]]
143+
return [entry["resource"]["id"] for entry in json_resp.get("entry", [])]
144144

145145
async def _init_table_cache(self):
146146
table_names = await self._get_all_entities_name()

0 commit comments

Comments
 (0)