Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
urchinpro committed Sep 30, 2023
1 parent cd2b61b commit 2e86003
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/directions/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def directions_generate(request):
hospital_department_override=p.get("hospital_department_override", -1),
hospital_override=p.get("hospital_override", -1),
price_category=p.get("priceCategory", -1),
case_id = p.get("caseId", -2),
case_id=p.get("caseId", -2),
)
for _ in range(p.get("directions_count", 1)):
rc = Napravleniya.gen_napravleniya_by_issledovaniya(*args, **kwargs)
Expand Down Expand Up @@ -4447,7 +4447,7 @@ def patient_open_case(request):
n = Napravleniya.objects.filter(parent_case_id=o_case.iss_id).first()
iss = Issledovaniya.objects.filter(napravleniye=n).first()
if iss:
title = iss.research.short_title if iss.research.short_title else iss.research.title
title = iss.research.short_title if iss.research.short_title else iss.research.title
else:
title = "Случай пустой"
data_case.append({"id": o_case.iss_id, "label": f"{title} от {o_case.date_create}"})
Expand Down

0 comments on commit 2e86003

Please sign in to comment.