Browse Source

comment.py

CJ 11 months ago
parent
commit
422cc64429
1 changed files with 1 additions and 1 deletions
  1. 1 1
      blog/views.py

+ 1 - 1
blog/views.py

@@ -112,7 +112,7 @@ def avatar(request, pk):
 def index(request):
     article_sql = '''SELECT count(*) as count,strftime('%Y-%m',created_time) as datetime FROM blog_article group by strftime('%Y,%m',created_time)'''
     tag_sql = '''SELECT bt.id,bt.name,count() as count FROM blog_tags bt  left join blog_article_tags bat on bt.id = bat.tags_id group by bt.name
-order by count desc limit 20'''
+order by count desc limit 10'''
     cursor = connection.cursor()
     cursor.execute(article_sql)
     fetchall = cursor.fetchall()