diff options
author | Britney Fransen <brfransen@gmail.com> | 2012-04-07 19:42:02 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2012-04-07 19:42:02 (GMT) |
commit | 671fd3f90521ca4e849b53a3b8439eff82a0631a (patch) | |
tree | f825843b86c4eafe6b5de957a3501b3e4b9b7129 /abs/core/LinHES-system/myth_status.py | |
parent | be81f661c34084eb2528c61c5775b5e8ead761ad (diff) | |
download | linhes_pkgbuild-671fd3f90521ca4e849b53a3b8439eff82a0631a.zip linhes_pkgbuild-671fd3f90521ca4e849b53a3b8439eff82a0631a.tar.gz linhes_pkgbuild-671fd3f90521ca4e849b53a3b8439eff82a0631a.tar.bz2 |
LinHES-system: myth_status.py: limit upcoming recordings to 12
Diffstat (limited to 'abs/core/LinHES-system/myth_status.py')
-rw-r--r-- | abs/core/LinHES-system/myth_status.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/abs/core/LinHES-system/myth_status.py b/abs/core/LinHES-system/myth_status.py index 4e44fd5..f8222cb 100644 --- a/abs/core/LinHES-system/myth_status.py +++ b/abs/core/LinHES-system/myth_status.py @@ -12,6 +12,7 @@ cursor = db.cursor() now = datetime.datetime.now() farout=99999999 next_start_diff=datetime.timedelta(farout) +num_upcoming=12 def formatTD(td): #print td @@ -68,10 +69,15 @@ for i in a: print "" -print "Upcoming Recordings:" +print "Upcoming Recordings (Next %s scheduled):" %(num_upcoming) print "--------------------" a=be.getUpcomingRecordings() +r=0 for i in a: + r += 1 + if r > num_upcoming: + break + title_chan="%s (%s)" %(i.title, i.channame) print " %s - %s - %-50s " %(i.starttime,i.hostname, title_chan) #start_time=time.strptime(str(i.starttime), "%Y-%m-%d %H:%M:%S") |