Преглед изворни кода

https://github.com/openNAMU/openNAMU/issues/2186

잉여개발기 (SPDV) пре 2 година
родитељ
комит
35a74e590c
5 измењених фајлова са 9 додато и 6 уклоњено
  1. 1 1
      lang/en-US.json
  2. 1 1
      lang/ko-KR.json
  3. 4 1
      route/tool/func.py
  4. 1 1
      route/user_challenge.py
  5. 2 2
      version.json

+ 1 - 1
lang/en-US.json

@@ -676,5 +676,5 @@
             "challenge_info_thousandth_discussion" : "Post the 1000th discussion thread<br><br>Reward : 📜 title and 10000 exp",
 
             "challenge_title_admin" : "If you want to test a man's character, give him power.",
-            "challenge_info_admin" : "Be the administrator.<br><br>Reward :  title and 10000 exp"
+            "challenge_info_admin" : "Be the administrator.<br><br>Reward : ☑️ title and 10000 exp"
 }

+ 1 - 1
lang/ko-KR.json

@@ -432,7 +432,7 @@
     "challenge_title_thousandth_discussion": "나는 생각한다. 고로 존재한다.",
     "challenge_info_thousandth_discussion": "1000번째 토론 스레드를 올리세요.<br><br>보상 : 📜 칭호와 10000 경험치",
     "challenge_title_admin" : "왕후장상의 씨가 어찌 따로 있단 말이냐!",
-    "challenge_info_admin" : "관리자가 되세요.<br><br>보상 :  칭호와 10000 경험치",
+    "challenge_info_admin" : "관리자가 되세요.<br><br>보상 : ☑️ 칭호와 10000 경험치",
     "challenge": "도전과제",
     "user_title": "칭호",
     "alpha": "알파",

+ 4 - 1
route/tool/func.py

@@ -635,6 +635,9 @@ def update(conn, ver_num, set_data):
 
             curs.execute(db_change("update data_set set doc_rev = ? where doc_name = ? and (doc_rev = '' or doc_rev = 'not_exist')"), [data_set_exist, for_a[0]])
 
+    if ver_num < 20240513:
+        curs.execute(db_change("update user_set set data = '☑️' where name = 'user_title' and data = '✅'"))
+
     print('Update completed')
 
 def set_init_always(conn, ver_num):
@@ -840,7 +843,7 @@ def get_user_title_list(conn, ip = ''):
 
     curs.execute(db_change('select data from user_set where name = ? and id = ?'), ['challenge_admin', ip])
     if curs.fetchall():
-        user_title['✅'] = '✅ admin'
+        user_title['☑️'] = '☑️ admin'
     
     return user_title
     

+ 1 - 1
route/user_challenge.py

@@ -239,7 +239,7 @@ def user_challenge():
             db_data = curs.fetchall()
             disable = 1 if db_data else 0
             data_html = do_make_challenge_design(
-                '',
+                '☑️',
                 get_lang(conn, 'challenge_title_admin'), 
                 get_lang(conn, 'challenge_info_admin', 1),
                 disable

+ 2 - 2
version.json

@@ -1,7 +1,7 @@
 {
     "beta" : {
-        "r_ver" : "v3.5.0-dev109",
-        "c_ver" : "20240426",
+        "r_ver" : "v3.5.0-v110",
+        "c_ver" : "20240513",
         "s_ver" : "20240426"
     }
 }