Make percentage <100% if level incomplete (#1593)
Make percentage <100% if level incomplete (#1593)

This commit caps the "percentage" value to
99 at most if the level is not 100% complete.

This is a defensive programming measure.
We round percentages, so this will only a problem once
(N-1)/N >= 0.995, that is, number of items in a level N>=200,
and we don't want that many questions in a level.
Still, I feel better being *certain* it cannot cause problems.

Signed-off-by: David A. Wheeler <9ae72d22d8b894b865a7a496af4fab6320e6abb2@dwheeler.com>
linuxfoundation/cii-best-practices-badge,linuxfoundation/cii-best-practices-badge,coreinfrastructure/best-practices-badge,linuxfoundation/cii-best-practices-badge,coreinfrastructure/best-practices-badge,linuxfoundation/cii-best-practices-badge,coreinfrastructure/best-practices-badge,coreinfrastructure/best-practices-badge