Quellcode durchsuchen

修改输出文件格式

peng vor 2 Jahren
Ursprung
Commit
35e6322d7b
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      controller/LangArea.py

+ 1 - 1
controller/LangArea.py

@@ -147,7 +147,7 @@ class LangAreaView(TemplateView):
                 if type == 'ios' or type == 'link_ios':
                     content = content + '"' + l + '"="' + content_val + '";\n'
                 else:
-                    content = content + '"' + l + '":"' + content_val + '";\n'
+                    content = content + '{"' + l + '":"' + content_val + '"},\n'
         elif type == 'android' or type == 'link_android':
             res_qs = LangKeyModel.objects.filter(langvalmodel__la__id=id, type__in=langType). \
                 values('word_key', 'langvalmodel__word_val').order_by('addTime')