Omit leaderless list from TC election results

The close_election command treats TC elections as a single-team PTL
election, essentially. The leaderless list, however, is generated
from the full list of projects included in an election which, in a
parallel TC/PTL election will include more projects than just the
TC. Rather than heavily refactor the utility function where that
data is summarized, just delete the leaderless list from the
election results when reporting for the TC round in a parallel
TC/PTL election.

Change-Id: Ia8bb11addb9f70283b3e676d90e5e7b48494b8e1
This commit is contained in:
Jeremy Stanley 2021-03-10 19:51:44 +00:00
parent c9560ea71f
commit b4809462aa

View File

@ -32,6 +32,7 @@ def process(db, round):
dirty = True
db['projects'] = ['TC']
db['candidates'] = {'TC': db['candidates']['TC']}
del db['leaderless']
if round == 'ptl' and 'TC' in db['projects']:
dirty = True
db['projects'].remove('TC')