잉여개발기 (SPDV) 2 лет назад
Родитель
Сommit
2e036558dc
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      route/tool/func.py
  2. 1 1
      route/user_info.py

+ 1 - 1
route/tool/func.py

@@ -1268,7 +1268,7 @@ def wiki_custom():
                 user_admin = '0'
                 user_acl_list = '0'
 
-            curs.execute(db_change("select count(*) from user_notice where name = ? and read = ''"), [ip])
+            curs.execute(db_change("select count(*) from user_notice where name = ? and readme = ''"), [ip])
             count = curs.fetchall()
             user_notice = str(count[0][0]) if count else '0'
         else:

+ 1 - 1
route/user_info.py

@@ -13,7 +13,7 @@ def user_info(name = ''):
         tool_menu = ''
         
         if name == '':
-            curs.execute(db_change("select count(*) from user_notice where name = ? and read = ''"), [ip])
+            curs.execute(db_change("select count(*) from user_notice where name = ? and readme = ''"), [ip])
             count = curs.fetchall()
             if count and count[0][0] != 0:
                 tool_menu += '<li><a class="opennamu_not_exist_link" href="/alarm">' + load_lang('alarm') + ' (' + str(count[0][0]) + ')</a></li>'