diff --git a/dashboard/templatetags/__pycache__/__init__.cpython-39.pyc b/dashboard/templatetags/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000..101b49f Binary files /dev/null and b/dashboard/templatetags/__pycache__/__init__.cpython-39.pyc differ diff --git a/dashboard/templatetags/__pycache__/startswith.cpython-39.pyc b/dashboard/templatetags/__pycache__/startswith.cpython-39.pyc new file mode 100644 index 0000000..2b9cd0f Binary files /dev/null and b/dashboard/templatetags/__pycache__/startswith.cpython-39.pyc differ diff --git a/polls/views/__pycache__/__init__.cpython-39.pyc b/polls/views/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000..8253ba5 Binary files /dev/null and b/polls/views/__pycache__/__init__.cpython-39.pyc differ diff --git a/polls/views/__pycache__/compartment.cpython-39.pyc b/polls/views/__pycache__/compartment.cpython-39.pyc new file mode 100644 index 0000000..d77a706 Binary files /dev/null and b/polls/views/__pycache__/compartment.cpython-39.pyc differ diff --git a/polls/views/__pycache__/download.cpython-39.pyc b/polls/views/__pycache__/download.cpython-39.pyc new file mode 100644 index 0000000..d6b9115 Binary files /dev/null and b/polls/views/__pycache__/download.cpython-39.pyc differ diff --git a/polls/views/__pycache__/group.cpython-39.pyc b/polls/views/__pycache__/group.cpython-39.pyc new file mode 100644 index 0000000..e51e317 Binary files /dev/null and b/polls/views/__pycache__/group.cpython-39.pyc differ diff --git a/polls/views/__pycache__/media.cpython-39.pyc b/polls/views/__pycache__/media.cpython-39.pyc new file mode 100644 index 0000000..784fd2e Binary files /dev/null and b/polls/views/__pycache__/media.cpython-39.pyc differ diff --git a/polls/views/__pycache__/message.cpython-39.pyc b/polls/views/__pycache__/message.cpython-39.pyc new file mode 100644 index 0000000..d486112 Binary files /dev/null and b/polls/views/__pycache__/message.cpython-39.pyc differ diff --git a/polls/views/__pycache__/monitor.cpython-39.pyc b/polls/views/__pycache__/monitor.cpython-39.pyc new file mode 100644 index 0000000..7f47b70 Binary files /dev/null and b/polls/views/__pycache__/monitor.cpython-39.pyc differ diff --git a/polls/views/__pycache__/news.cpython-39.pyc b/polls/views/__pycache__/news.cpython-39.pyc new file mode 100644 index 0000000..8e97d92 Binary files /dev/null and b/polls/views/__pycache__/news.cpython-39.pyc differ diff --git a/polls/views/__pycache__/notice.cpython-39.pyc b/polls/views/__pycache__/notice.cpython-39.pyc new file mode 100644 index 0000000..feb3f1c Binary files /dev/null and b/polls/views/__pycache__/notice.cpython-39.pyc differ diff --git a/polls/views/__pycache__/organizations.cpython-39.pyc b/polls/views/__pycache__/organizations.cpython-39.pyc new file mode 100644 index 0000000..ece779c Binary files /dev/null and b/polls/views/__pycache__/organizations.cpython-39.pyc differ diff --git a/polls/views/__pycache__/task.cpython-39.pyc b/polls/views/__pycache__/task.cpython-39.pyc new file mode 100644 index 0000000..e981f87 Binary files /dev/null and b/polls/views/__pycache__/task.cpython-39.pyc differ diff --git a/polls/views/__pycache__/user.cpython-39.pyc b/polls/views/__pycache__/user.cpython-39.pyc new file mode 100644 index 0000000..5ba8e73 Binary files /dev/null and b/polls/views/__pycache__/user.cpython-39.pyc differ diff --git a/polls/views/task.py b/polls/views/task.py index c9d4b53..a59e1e0 100644 --- a/polls/views/task.py +++ b/polls/views/task.py @@ -68,12 +68,13 @@ def create_task(request): task=task, category=2, image=picture) for group in groups: users = Group_user.objects.filter(group_id=group) + phones = [] for u in users: profile = Userprofile.objects.filter(user_id=u.user_id).first() if profile and profile.status == 1: content = '%s在群组“%s”发布了任务,请查收消息' % (creater_profile, u.group.name) Notice.create_normal_notice(u.user_id, content, group) - phones = [u.user.username for u in users] + phones.append(u.user.username) send_tnps(phones, '任务', content) return JsonResponse({'status': 'success'})