Explorar o código

修改输出文件格式

peng %!s(int64=2) %!d(string=hai) anos
pai
achega
35e6322d7b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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':
                 if type == 'ios' or type == 'link_ios':
                     content = content + '"' + l + '"="' + content_val + '";\n'
                     content = content + '"' + l + '"="' + content_val + '";\n'
                 else:
                 else:
-                    content = content + '"' + l + '":"' + content_val + '";\n'
+                    content = content + '{"' + l + '":"' + content_val + '"},\n'
         elif type == 'android' or type == 'link_android':
         elif type == 'android' or type == 'link_android':
             res_qs = LangKeyModel.objects.filter(langvalmodel__la__id=id, type__in=langType). \
             res_qs = LangKeyModel.objects.filter(langvalmodel__la__id=id, type__in=langType). \
                 values('word_key', 'langvalmodel__word_val').order_by('addTime')
                 values('word_key', 'langvalmodel__word_val').order_by('addTime')