잉여개발기 (SPDV) 2 anni fa
parent
commit
956d1c8e4d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      route/api_w_raw.py

+ 1 - 1
route/api_w_raw.py

@@ -6,7 +6,7 @@ def api_w_raw(name = 'Test', rev = '', exist_check = ''):
 
         if exist_check != '':
             curs.execute(db_change("select title from data where title = ?"), [name])
-            if data:
+            if curs.fetchall():
                 return flask.jsonify({ 'exist' : '1' })
             else:
                 return flask.jsonify({})