From 5f85ae9bff2942a1fbee03f32d685ee6d066e5ae Mon Sep 17 00:00:00 2001 From: Richard1427 <1249923715@qq.com> Date: Wed, 9 Dec 2020 21:51:27 +0800 Subject: [PATCH] first commit --- database.sqlite | Bin 69632 -> 69632 bytes service.py | 90 +++++++++++++++++++++++++++++------------ templates/article.html | 4 +- templates/author.html | 2 +- templates/search.html | 2 +- 5 files changed, 69 insertions(+), 29 deletions(-) diff --git a/database.sqlite b/database.sqlite index 114ba9e077b52c3b20a6384aad5e750bd9a47503..63053cf3182c1f82025f1920e0f279918eb16ee3 100644 GIT binary patch delta 83 zcmZozz|ydQWr8&0oryBejCVFBRJ1X3GGvd;*vstvd=3+N|7uk3*9GAp;BlO$Ppt{6F|# j^4|o)LlC%GFkm(R{{ article.title }} -

-abstract

 {{ Tool.sensitive_words_filter(article.abstract) }}



+{#

-abstract

 {{ Tool.sensitive_words_filter(article.abstract) }}



#}

-hightlights

 {{ article.highlight }}



@@ -145,7 +145,7 @@

{{ article.title }}

{{ Tool.email_display_filter(comment.author.mail) }}


-

{{ Tool.sensitive_words_filter(comment.body) }}


+{#

{{ Tool.sensitive_words_filter(comment.body) }}


#}

like

{{ comment.upvote }}

dislike

{{ comment.downvote }}

{{ comment.time.strftime("%Y-%m-%d %H:%M") }}

diff --git a/templates/author.html b/templates/author.html index 91188d6..f4088d6 100644 --- a/templates/author.html +++ b/templates/author.html @@ -78,7 +78,7 @@

{{ Tool.email_display_filter(author.mail) }}

{% for comment in comments %} {{ comment.article.title }} - {{ Tool.sensitive_words_filter(comment.body) }} +{# {{ Tool.sensitive_words_filter(comment.body) }}#} {{ comment.time.strftime("%Y-%m-%d %H:%M") }} {{ comment.upvote }} {{ comment.downvote }} diff --git a/templates/search.html b/templates/search.html index 92765ef..ce2e441 100644 --- a/templates/search.html +++ b/templates/search.html @@ -45,7 +45,7 @@ {% for comment in comments %} {{ comment.article.title }} - {{ Tool.sensitive_words_filter(comment.body) }} +{# {{ Tool.sensitive_words_filter(comment.body) }}#} {{ comment.time.strftime("%Y-%m-%d %H:%M") }} {{ Tool.email_display_filter(comment.author.mail) }}