Your Name 3 gadi atpakaļ
vecāks
revīzija
de2c16f7c8
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. 5 1
      faq/faq_static.py

+ 5 - 1
faq/faq_static.py

@@ -13,7 +13,11 @@ dir_prefix='/var/www/jared-faq/'
 
 for l in lst:
     curdir=dir_prefix+l+'/index.html'
-    outfile='/tmp/out.html'
+    outdir=dir_prefix+'modify/'
+#    outfile='/tmp/out.html'
+    if not os.path.exists(outdir):
+        os.mkdir(outdir)
+    outfile=outdir+'index.html'
     json_content=None
     cursor=db.query('select json_ld from xoops._hcolumn where hcolumn_id="'+l+'"')
     for c in cursor: