OSDN Git Service

implement personal epg updating(rc1).
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Mon, 24 Aug 2009 02:58:07 +0000 (02:58 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Mon, 24 Aug 2009 02:58:07 +0000 (02:58 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@131 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/dbMySQL.py
rec10/trunk/src/epgdb.py
rec10/trunk/src/timerec.py

index dd2c663..2588547 100644 (file)
@@ -99,6 +99,7 @@ class DB_MySQL:
             #print dl
             r=list(dl)
             r[5]=r[5].strftime("%Y-%m-%d %H:%M:%S")
+            r[6]=str(r[6])
             ret.append(r)
         return ret
     def select_by_ch_chdata(self,ch):
index 8a6eef9..785f685 100644 (file)
@@ -41,7 +41,7 @@ def updatebc(bctype):
         print type(inst)
         print inst
         xml2db.xml2db(tmppath+bctype+"epgdate.bak.xml",bctype)
-        if rec10d.rec10db.select_by_bctype_chdata(bctypet)[0][6]!="0":
+        if rec10d.rec10db.select_by_bctype_chdata(bctype)[0][6]!="0":
             rec10d.rec10db.update_status_by_bctype_chdata(bctype,"2")
 def updatebc_bak(bctype):
     """
index b7a5279..94b0808 100644 (file)
@@ -140,7 +140,9 @@ def task():
                         else:
                             print "nothing match"
                     else:
-                        rec10d.rec10db.update_status_by_bctype_chdata(bctypet,"3")
+                        print rec10d.rec10db.select_by_bctype_chdata(bctypet)
+                        if rec10d.rec10db.select_by_bctype_chdata(bctypet)[0][6]!="0":
+                            rec10d.rec10db.update_status_by_bctype_chdata(bctypet,"3")
                     sys.exit()
                     """cht=chdb.chtxtsearch(chtxt)['bctype']
                     if cht.find('te')!=-1: