#add message

This commit is contained in:
xieshen 2021-02-03 11:48:42 +08:00
parent 6333a288dc
commit cc45f1b3a6
4 changed files with 10 additions and 2 deletions

View File

@ -14,4 +14,5 @@ urlpatterns = [
path('backstage/weibo/update/',views.backstage_weibo_update,name='backstage-weibo_update'),
path('backstage/toutiao/update/',views.backstage_toutiao_update,name='backstage-toutiao_update'),
path('backstage/qita/update/',views.backstage_qita_update,name='backstage-qita_update'),
path('backstage/add/unqualified/media/',views.add_unqualified_media,name='backstage-add-unqualified-media'),
]

View File

@ -374,4 +374,7 @@ def backstage_qita_update(request):
x['c'] = '异常'
data_results.append(x)
print(data_results)
return render(request, 'backstage/backstage-toutiao-update.html', {'data_results': data_results})
return render(request, 'backstage/backstage-toutiao-update.html', {'data_results': data_results})
def add_unqualified_media(request):
return render(request)

View File

@ -214,6 +214,10 @@
<a {% if url_name == 'backstage-qita_update' %} class="active" {% endif %}
href="{% url 'backstage-qita_update' %}">其他更新</a>
</li>
<li>
<a {% if url_name == 'backstage-add-unqualified-media' %} class="active" {% endif %}
href="{% url 'backstage-add-unqualified-media' %}">添加不合格记录</a>
</li>
<li>
</li>

View File

@ -26,7 +26,7 @@ import pandas as pd
def new_media_public_opinion_weixin(request):
weixin = Weixin.objects.all()
group = Group.objects.all()
weixin_data = Weixin_data.objects.all().order_by('-comment')
weixin_data = Weixin_data.objects.all()
res = []
for w in weixin_data:
o = dict()