#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):
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):
"""
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: