• R/O
  • HTTP
  • SSH
  • HTTPS

rec10-git: Commit

rec10 git


Commit MetaInfo

Revision9c8a213fb353606740c3db4c7e6a3c4703b99d6e (tree)
Zeit2013-11-13 13:57:44
Autorgn64_jp <gn64@rec1...>
Commitergn64_jp

Log Message

classify : fix DB.

Ändern Zusammenfassung

Diff

--- a/rec10/classify.py
+++ b/rec10/classify.py
@@ -88,10 +88,7 @@ if __name__ == "__main__":
8888 dbl=rec10d.rec10db.select_move_auto_classify()
8989 if len(dbl)>0:
9090 for dbt in dbl:
91- title= dbt[1]
92- #frompath = dbt[1]
93- #topath = dbt[2]
94- #t=os.path.splitext(os.path.split(frompath)[1])[0]
91+ t= dbt[1]
9592 auto_move.execMove(t, recpath, recordedpath,".mp4",1)
9693 rec10d.rec10db.delete_refresh_auto_classify()
9794 sa=auto_move.searchFile(recpath, recordedpath, ".mp4")
--- a/rec10/dbMySQL.py
+++ b/rec10/dbMySQL.py
@@ -1242,8 +1242,8 @@ vim ")
12421242 (\
12431243 id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,\
12441244 title VARCHAR(100),\
1245- frompath VARCHAR(1024),\
1246- topath VARCHAR(1024),\
1245+ frompath VARCHAR(400),\
1246+ topath VARCHAR(400),\
12471247 do BOOLEAN,\
12481248 UNIQUE key (title)\
12491249 )')
@@ -1280,10 +1280,7 @@ vim ")
12801280 if dbexe > 0:
12811281 dls = db[1].fetchall()
12821282 self.close_db(db)
1283- if len(dls)>0:
1284- return dls[0]
1285- else:
1286- return dls
1283+ return dls
12871284 def update_db_to93(self):
12881285 db = self.connect_db()
12891286 self.drop_in_settings()
Show on old repository browser