From 1c9d5160fcce1048a958bd7a3cde954ead7ed06e Mon Sep 17 00:00:00 2001
From: Floreal Cabanettes <floreal.cabanettes@inra.fr>
Date: Fri, 2 Mar 2018 14:11:56 +0100
Subject: [PATCH] Minof fix + remove debug

---
 src/dgenies/bin/sort_paf.py       | 3 ---
 src/dgenies/templates/status.html | 2 +-
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/dgenies/bin/sort_paf.py b/src/dgenies/bin/sort_paf.py
index 14bc493..28b690e 100755
--- a/src/dgenies/bin/sort_paf.py
+++ b/src/dgenies/bin/sort_paf.py
@@ -90,14 +90,11 @@ class Sorter:
                     pct_to_keep = 2000000 / num_lines
                     limit = int(nb_lines * pct_to_keep)
                     paf_lines = paf_lines[:limit]
-                    print(len(paf_lines))
                     min_len = paf_lines[-1][-1]
-                    print(min_len)
                     print("Sorting done!")
             elif len_line >= min_len:
                 print("Processing line %d..." % nb_lines)
                 paf_lines.append(parts)
-                print(len(paf_lines))
         paf_lines.sort(key=lambda x: -x[-1])
 
         return paf_lines
diff --git a/src/dgenies/templates/status.html b/src/dgenies/templates/status.html
index 7768744..4753d75 100644
--- a/src/dgenies/templates/status.html
+++ b/src/dgenies/templates/status.html
@@ -66,7 +66,7 @@
         {% else %}
             <p>This job does not exists!</p>
         {% endif %}
-        {% if status not in ["success", "no_match", "fail"] %}
+        {% if status not in ["success", "no-match", "fail"] %}
             {% if mode == "webserver" %}
                 You will receive an email when it will be finished.<br/>
                 Alternatively, you can refresh this page to update status.</p>
-- 
GitLab