OSDN Git Service

fix epg updating.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Fri, 5 Feb 2010 11:19:59 +0000 (11:19 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Fri, 5 Feb 2010 11:19:59 +0000 (11:19 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@431 4e526526-5e11-4fc0-8910-f8fd03428081

rec10/trunk/src/chdb.py
rec10/trunk/src/dbMySQL.py

index 7aeb630..0d071c9 100644 (file)
@@ -50,7 +50,7 @@ def update():
     CSupdate = 0
     CS2update = 0
     BSupdate = 0
-    rec10d.rec10db.set_new_status("12")
+    rec10d.rec10db.set_new_status("8")
     for datum in rec10d.rec10db.select_get_update_epg_ch("6"):
         bctype = datum[0]
         if bctype == "cs1" or bctype == u"cs1":
index 8c977ab..b87d5bf 100644 (file)
@@ -235,7 +235,8 @@ class DB_MySQL:
         db[1].execute("\
         UPDATE epg_ch \
         SET \
-        status=%s \
+        status=%s , \
+        updatetime=now() \
         WHERE bctype = %s", \
                       (status, bctype)\
                       )