OSDN Git Service

classify : fix DB.
[rec10/rec10-git.git] / rec10 / dbMySQL.py
index 01337bb..8a97de5 100644 (file)
@@ -1242,8 +1242,8 @@ vim         ")
             (\
             id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,\
             title VARCHAR(100),\
-            frompath VARCHAR(1024),\
-            topath VARCHAR(1024),\
+            frompath VARCHAR(400),\
+            topath VARCHAR(400),\
             do BOOLEAN,\
             UNIQUE key (title)\
             )')
@@ -1280,10 +1280,7 @@ vim         ")
         if dbexe > 0:
             dls = db[1].fetchall()
         self.close_db(db)
-        if len(dls)>0:
-            return dls[0]
-        else:
-            return dls
+        return dls
     def update_db_to93(self):
         db = self.connect_db()
         self.drop_in_settings()