[Wepg-devel] mythcond populate.py,1.1,1.2 serie.py,1.3,1.4
Brought to you by:
leonvs
|
From: Leon v. S. <le...@us...> - 2004-08-22 13:54:16
|
Update of /cvsroot/wepg/mythcond In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30880 Modified Files: populate.py serie.py Log Message: ok Index: serie.py =================================================================== RCS file: /cvsroot/wepg/mythcond/serie.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** serie.py 8 Aug 2004 17:26:35 -0000 1.3 --- serie.py 22 Aug 2004 13:53:52 -0000 1.4 *************** *** 30,33 **** --- 30,34 ---- TOLERANCE = 3.0/24 #3 hours + nextSeriesID = 1 def loadBroadcasts(mythdb, chanid, start_time, end_time, base_day_offset, day_offset, count, offsets): *************** *** 151,154 **** --- 152,156 ---- sid = nextSeriesID nextSeriesID = nextSeriesID + 1 + print "sid",sid for i in bc: # print 'a', *************** *** 271,274 **** --- 273,278 ---- def main(): + global nextSeriesID + try: opts, args = getopt.getopt(sys.argv[1:], "h:u:p:v?", ["host=", "user=", "password=", "help"]) Index: populate.py =================================================================== RCS file: /cvsroot/wepg/mythcond/populate.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** populate.py 8 Aug 2004 17:26:35 -0000 1.1 --- populate.py 22 Aug 2004 13:53:52 -0000 1.2 *************** *** 28,36 **** def populateUserBroadcast(mythdb, user_id, verbose): ! cu = mythdb.cursor() ! cu.execute("SELECT MAX(starttime) FROM UserBroadcast WHERE user_id=%s", (user_id)) ! row = cu.fetchone() ! limit = mux(row == None or row[0] == None, mx.DateTime.today(), row[0]) ! cu.close() if verbose: print "populate from",limit --- 28,39 ---- def populateUserBroadcast(mythdb, user_id, verbose): ! # cu = mythdb.cursor() ! # cu.execute("SELECT MAX(starttime) FROM UserBroadcast WHERE user_id=%s", (user_id)) ! # row = cu.fetchone() ! # limit = mux(row == None or row[0] == None, mx.DateTime.today(), row[0]) ! # cu.close() ! ! limit = mx.DateTime.today() ! if verbose: print "populate from",limit |