lhq 4 лет назад
Родитель
Сommit
89cf8b277c
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      controller/LangArea.py

+ 1 - 4
controller/LangArea.py

@@ -179,10 +179,7 @@ class LangAreaView(TemplateView):
                 lk = lk.replace('%', '_')
                 lk = lk.replace(';', '_')
                 lk = lk.replace('‘', '_')
-            if type == 'android' or type == 'link_android':
-                for l in res:
-                    lk = l
-                    lk = lk.replace('&', '&')
+                lk = lk.replace('&', '&')
                 # 正则表达式
                 # re.sub("[a-z]+", "$", "123abc78ab9cdeg00t8")
                 content_val = res[l].replace("'", "\\'")