From: Ian Jackson Date: Wed, 27 May 2009 23:50:39 +0000 (+0100) Subject: do not say how many aboard if we are not X-Git-Tag: 1.0~2 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=commitdiff_plain;h=914e330af19dbd22724b0f52e1ae7bfcd10e8ec7;ds=sidebyside do not say how many aboard if we are not --- diff --git a/yoweb-scrape b/yoweb-scrape index deb0594..df8de47 100755 --- a/yoweb-scrape +++ b/yoweb-scrape @@ -1101,8 +1101,11 @@ def ship_aid_core(myself, track, displayer, kreader): tbl_s = StringIO() tbl = StandingsTable(tbl_s) - tbl.headings(' %d aboard' % len(aboard), - ' sorted by '+sort.desc()) + + if track.vesselname(): howmany = ' %d aboard' % len(aboard) + else: howmany = '' + + tbl.headings(howmany, ' sorted by '+sort.desc()) for pa in aboard: pi = pa.pirate_info()