- VALUES (%s,%s,%s,%s,%s,"",%s,%s,%s)', \
- (bctype, ontv, chtxt, ch, csch, updatetime, "1","1"))
- self.close_db(db)
- def select_by_ontv_epg_ch(self, ontv):
- db = self.connect_db()
- dbexe = db[1].execute("\
- SELECT bctype,ontv,chtxt,ch,csch,updatetime \
- FROM epg_ch \
- WHERE ontv = %s", \
- (ontv,))
- ret = []
- dls = []
- if dbexe > 0:
- dls = db[1].fetchall()
+ VALUES (%s,%s,%s,%s,"",%s,%s,%s)', \
+ (bctype, chtxt, ch, csch, updatetime, "1","1"))