Parcourir la source

또 빼먹은 부분 추가

잉여개발기 (SPDV) il y a 2 ans
Parent
commit
550f742a2e
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  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>'