This commit is contained in:
Ilya Mukhortov 2026-01-20 11:52:16 +10:00
parent d3c61a3fd3
commit 195424cefb
1 changed files with 6 additions and 5 deletions

View File

@ -69,11 +69,12 @@ def update_call_requests_task(self):
service_name = call_specialities[booking['user']['doctor']['speciality']].name service_name = call_specialities[booking['user']['doctor']['speciality']].name
for booking_service in booking['services']: for booking_service in booking['services']:
service_code = booking_service['service']['code'] if booking_service['service'] is not None:
for regex, bot_talking in call_services.items(): service_code = booking_service['service']['code']
if re.match(regex, service_code.strip()): for regex, bot_talking in call_services.items():
service_name = bot_talking if re.match(regex, service_code.strip()):
break service_name = bot_talking
break
if lpu is None or service_name is None: if lpu is None or service_name is None:
continue continue