From 39b9d195ef803151612df8573566563c2eb75d50 Mon Sep 17 00:00:00 2001
From: Elliu <elliu@hashi.re>
Date: Thu, 9 Dec 2021 18:14:41 +0100
Subject: [PATCH] Fix end " < "

---
 fill.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fill.py b/fill.py
index 7af86c0..b2b5628 100755
--- a/fill.py
+++ b/fill.py
@@ -6,6 +6,7 @@ nbListes = len(listes)-1
 with open('results.txt','r') as data:
     o = open('results_out.txt','w')
     for line in data.readlines():
+        maxColumn = int(max(line))
         for column in range(1,10):
             first = True
             found = False
@@ -17,7 +18,7 @@ with open('results.txt','r') as data:
                 o.write(listes[ind+1])
                 first = False
                 found = True
-            if found and column < nbListes:
+            if found and column < maxColumn:
                 o.write(" > ")
         o.write("\n")
     o.close()
-- 
GitLab