chiark / gitweb /
do not say how many aboard if we are not
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Wed, 27 May 2009 23:50:39 +0000 (00:50 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Wed, 27 May 2009 23:50:39 +0000 (00:50 +0100)
yoweb-scrape

index deb0594..df8de47 100755 (executable)
@@ -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()