+ {% endfor %} +
抖音号 | +更新次数 | +最近更新时间 | +连续未更新天数 | +评论次数 | +评论回复次数 | +错别字个数 | +敏感词个数 | +非法外链接 | +
---|---|---|---|---|---|---|---|---|
{{ r.n_name }} | +{{ r.count }} | +{{ r.start_data }} | +{{ r.silet }} | +0 | +0 | +{{ r.wrongly }} | +0 | +0 | +
From 8e994f1c936f46c79eeacc05d1580cb658ff6599 Mon Sep 17 00:00:00 2001 From: Bob <1397910458@qq.com> Date: Wed, 28 Oct 2020 23:31:17 +0800 Subject: [PATCH] #add --- dashboard/models.py | 4 +- dashboard/templates/dashboard/base/left.html | 6 +- .../paginator/timeliness-monitoring.html | 18 + .../templates/management/user-management.html | 2 +- management/urls.py | 1 + .../new-media-public-opinion-weixin.html | 6 +- .../monitor/timeliness-monitoring-douyin.html | 208 ++++++++++ .../monitor/timeliness-monitoring-qita.html | 210 ++++++++++ .../timeliness-monitoring-toutiao.html | 208 ++++++++++ .../monitor/timeliness-monitoring-weibo.html | 208 ++++++++++ ...html => timeliness-monitoring-weixin.html} | 55 +-- monitor/urls.py | 6 +- monitor/views.py | 376 +++++++++++++++++- 13 files changed, 1259 insertions(+), 49 deletions(-) create mode 100644 dashboard/templates/dashboard/paginator/timeliness-monitoring.html create mode 100644 monitor/templates/monitor/timeliness-monitoring-douyin.html create mode 100644 monitor/templates/monitor/timeliness-monitoring-qita.html create mode 100644 monitor/templates/monitor/timeliness-monitoring-toutiao.html create mode 100644 monitor/templates/monitor/timeliness-monitoring-weibo.html rename monitor/templates/monitor/{timeliness-monitoring.html => timeliness-monitoring-weixin.html} (83%) diff --git a/dashboard/models.py b/dashboard/models.py index b3c83f6..9f739ee 100644 --- a/dashboard/models.py +++ b/dashboard/models.py @@ -738,12 +738,12 @@ class TimelinessMonitoring(models.Model): counties = models.CharField('县区', max_length=256, null=True, blank=True) remark = models.CharField('备注', max_length=256, null=True, blank=True) results = models.CharField('监测结果', max_length=256, null=True, blank=True) - update = models.CharField('更新次数', max_length=256, null=True, blank=True) + update = models.IntegerField('更新次数', null=True, blank=True) silet = models.CharField('最大连续静默日数', max_length=256, null=True, blank=True) start_data = models.CharField( '开始时间', max_length=256, null=True, blank=True) end_data = models.CharField('结束时间', max_length=256, null=True, blank=True) - comment = models.CharField('评论次数', max_length=256, null=True, blank=True) + comment = models.IntegerField('评论次数', null=True, blank=True) date = models.CharField('最近更新时间', max_length=256, null=True, blank=True) def __str__(self): diff --git a/dashboard/templates/dashboard/base/left.html b/dashboard/templates/dashboard/base/left.html index 9827996..6d1bba7 100644 --- a/dashboard/templates/dashboard/base/left.html +++ b/dashboard/templates/dashboard/base/left.html @@ -41,8 +41,8 @@ {#
抖音号 | +更新次数 | +最近更新时间 | +连续未更新天数 | +评论次数 | +评论回复次数 | +错别字个数 | +敏感词个数 | +非法外链接 | +
---|---|---|---|---|---|---|---|---|
{{ r.n_name }} | +{{ r.count }} | +{{ r.start_data }} | +{{ r.silet }} | +0 | +0 | +{{ r.wrongly }} | +0 | +0 | +
新媒体类型 | +新媒体账号 | +更新次数 | +最近更新时间 | +连续未更新天数 | +评论次数 | +评论回复次数 | +错别字个数 | +敏感词个数 | +非法外链接 | +
---|---|---|---|---|---|---|---|---|---|
{{ r.n_type }} | +{{ r.n_name }} | +{{ r.count }} | +{{ r.start_data }} | +{{ r.silet }} | +0 | +0 | +{{ r.wrongly }} | +0 | +0 | +
头条号 | +更新次数 | +最近更新时间 | +连续未更新天数 | +评论次数 | +评论回复次数 | +错别字个数 | +敏感词个数 | +非法外链接 | +
---|---|---|---|---|---|---|---|---|
{{ r.n_name }} | +{{ r.count }} | +{{ r.start_data }} | +{{ r.silet }} | +0 | +0 | +{{ r.wrongly }} | +0 | +0 | +
微博号 | +更新次数 | +最近更新时间 | +连续未更新天数 | +评论次数 | +评论回复次数 | +错别字个数 | +敏感词个数 | +非法外链接 | +
---|---|---|---|---|---|---|---|---|
{{ r.n_name }} | +{{ r.count }} | +{{ r.start_data }} | +{{ r.silet }} | +0 | +0 | +{{ r.wrongly }} | +0 | +0 | +
{{ update_count }}
-本周新增次数
-本月新增次数
+本周新增次数0
+本月新增次数0