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,6 +69,7 @@ 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']:
if booking_service['service'] is not None:
service_code = booking_service['service']['code'] service_code = booking_service['service']['code']
for regex, bot_talking in call_services.items(): for regex, bot_talking in call_services.items():
if re.match(regex, service_code.strip()): if re.match(regex, service_code.strip()):