Fix STVOptions::describe for --min-threshold

This commit is contained in:
RunasSudo 2021-08-09 23:27:58 +10:00
parent b1f2e42ce6
commit eb3c7d0f53
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A
2 changed files with 1 additions and 2 deletions

View File

@ -192,7 +192,7 @@ impl STVOptions {
if self.bulk_exclude { flags.push("--bulk-exclude".to_string()); }
if self.defer_surpluses { flags.push("--defer-surpluses".to_string()); }
if !self.immediate_elect { flags.push("--no-immediate-elect".to_string()); }
if self.min_threshold != "1" { flags.push(format!("--min-threshold {}", self.min_threshold)); }
if self.min_threshold != "0" { flags.push(format!("--min-threshold {}", self.min_threshold)); }
if let Some(path) = &self.constraints_path {
flags.push(format!("--constraints {}", path));
if self.constraint_mode != ConstraintMode::GuardDoom { flags.push(self.constraint_mode.describe()); }

View File

@ -1 +0,0 @@
Yingtong Li,runassudo,NEXUS.localdomain,09.08.2021 19:43,file:///home/runassudo/.config/libreoffice/4;