浏览代码

음... 이게 아닌데

Surplus_Up (2DU) 5 年之前
父节点
当前提交
b280f063e7
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app.py

+ 2 - 2
app.py

@@ -206,13 +206,13 @@ curs.execute(db_change('select name from alist where acl = "owner"'))
 if not curs.fetchall():
     curs.execute(db_change('insert into alist (name, acl) values ("owner", "owner")'))
 
-curs.execute(db_change('select name from other where name = "image_where"'))
+curs.execute(db_change('select data from other where name = "image_where"'))
 app_var = curs.fetchall()
 if not app_var:
     curs.execute(db_change('insert into other (name, data) values ("image_where", "data/images")'))
     app_var = { 'path_data_image' : 'data/images' }
 else:
-    app_var = { 'path_data_image' : app_var[0][1] }
+    app_var = { 'path_data_image' : app_var[0][0] }
 
 if not os.path.exists(app_var['path_data_image']):
     os.makedirs(app_var['path_data_image'])