Skip to content

Commit

Permalink
Не выводить уволенных
Browse files Browse the repository at this point in the history
  • Loading branch information
Wellheor1 committed Dec 16, 2024
1 parent e8ac2d7 commit 31cbf6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/sql_func.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ def users_by_group(title_groups, hosp_id):
FROM users_doctorprofile
LEFT JOIN
t_podrazdeleniye ON users_doctorprofile.podrazdeleniye_id = t_podrazdeleniye.id
WHERE user_id in (SELECT user_id FROM t_users_id) and hospital_id = %(hosp_id)s)
WHERE user_id in (SELECT user_id FROM t_users_id) and hospital_id = %(hosp_id)s
and users_doctorprofile.dismissed = false
)
SELECT doc_id, fio, podrazdeleniye_id, title_podr, short_title, position_id FROM t_users
ORDER BY podrazdeleniye_id, fio DESC
Expand Down

0 comments on commit 31cbf6b

Please sign in to comment.