This commit is contained in:
@ -207,7 +207,8 @@ async def get_aemd(
|
||||
return_items: list[s.AEMDReturnFile] = []
|
||||
|
||||
for item in items:
|
||||
if item['DocKind'] not in parsable_ids:
|
||||
DocKind = item['emdrId'].split('.')[0]
|
||||
if DocKind not in parsable_ids:
|
||||
continue
|
||||
|
||||
is_cached = await cache.get(f'aemd:{user.vita_id}:{item["emdrId"]}')
|
||||
@ -216,7 +217,7 @@ async def get_aemd(
|
||||
s.AEMDReturnFile(
|
||||
emdrId=item['emdrId'],
|
||||
registrationDate=item['registrationDate'],
|
||||
DocKind=item['DocKind'],
|
||||
DocKind=DocKind,
|
||||
IsSemd=item['IsSemd'],
|
||||
isCached=bool(is_cached),
|
||||
)
|
||||
|
||||
@ -49,7 +49,6 @@ class AEMD_API(AsyncClient):
|
||||
|
||||
match req.status_code:
|
||||
case status.HTTP_200_OK:
|
||||
print(req.text)
|
||||
envelope = s.Envelope.from_xml(req.text)
|
||||
|
||||
case _:
|
||||
|
||||
Reference in New Issue
Block a user