OSDN Git Service

classify : fix DB.
authorgn64_jp <gn64@rec10.org>
Wed, 13 Nov 2013 04:29:24 +0000 (13:29 +0900)
committergn64_jp <gn64@rec10.org>
Wed, 13 Nov 2013 04:29:24 +0000 (13:29 +0900)
rec10/dbMySQL.py

index 7c862e0..b40da12 100644 (file)
@@ -1261,9 +1261,8 @@ vim         ")
     def delete_refresh_auto_classify(self):
         db = self.connect_db()
         db[1].execute("\
     def delete_refresh_auto_classify(self):
         db = self.connect_db()
         db[1].execute("\
-        DROP TABLE auto_classify")
+        TRUNCATE TABLE auto_classify")
         self.close_db(db)
         self.close_db(db)
-        self.new_auto_classify()
     def delete_old_auto_classify(self, frompath):
         db = self.connect_db()
         db[1].execute("\
     def delete_old_auto_classify(self, frompath):
         db = self.connect_db()
         db[1].execute("\