Sort of bug fix

This commit is contained in:
Scott Idem
2023-02-03 13:53:19 -05:00
parent 20586471ab
commit b715b245e7

View File

@@ -55,9 +55,11 @@ async def event_import_reg(
details = details,
page = page,
)
log.info(f'Total record count: {len(event_registrant_li)}')
if event_registrant_li: pass
else: return mk_resp(data=None, status_code=404, status_message=f'Checked for registrations in Impexium. No Impexium registrations found.', response=commons.response)
if event_registrant_li:
log.info(f'Total record count: {len(event_registrant_li)}')
else:
return mk_resp(data=None, status_code=404, status_message=f'Checked for registrations in Impexium. No Impexium registrations found.', response=commons.response)
# return mk_resp(data=len(event_registrant_li), status_code=501, response=commons.response) # Not Implemented