Skip to content

Commit

Permalink
Add comments to explain code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Deophius committed Sep 5, 2024
1 parent e72f405 commit 6db8d58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/org_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,12 +516,14 @@ def make_relevant_notification(application: ModifyPosition | ModifyOrganization,
else:
raise NotImplementedError
applyer_id = apply_person.person_id
# 小组申请现在由运营初步审核,所以通知发给智慧书院小组
applyee_id = User.objects.get(username = GLOBAL_CONFIG.official_uid)
not_type = Notification.Title.NEW_ORGANIZATION
URL = f'/modifyOrganization/?org_id={application.id}'

sender = applyer_id if feasible_post.index(post_type) < 3 else applyee_id
receiver = applyee_id if feasible_post.index(post_type) < 3 else applyer_id
# 通过新小组申请是在后台进行的,只有在处理新的职位申请时需要跳转到申请页面处理
typename = (Notification.Type.NEEDDO
if post_type == 'new_submit' and isinstance(application, ModifyPosition)
else Notification.Type.NEEDREAD)
Expand Down

0 comments on commit 6db8d58

Please sign in to comment.