Browse Source

음... 이게 아닌데

Surplus_Up (2DU) 5 years ago
parent
commit
2e9ffffa03
1 changed files with 2 additions and 2 deletions
  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'])