[chronojump] Import (python) Fixed import of duplicated unicode session name



commit dcf91de61e7ac5a6a59996c4b0ca1730d7b4f204
Author: Xavier de Blas <xaviblas gmail com>
Date:   Thu Oct 17 11:45:15 2019 +0200

    Import (python) Fixed import of duplicated unicode session name

 src/chronojump-importer/chronojump_importer.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/chronojump-importer/chronojump_importer.py b/src/chronojump-importer/chronojump_importer.py
index 10b29f7c..1cd80240 100755
--- a/src/chronojump-importer/chronojump_importer.py
+++ b/src/chronojump-importer/chronojump_importer.py
@@ -287,12 +287,12 @@ class Database:
         suffix = re.match("(.*) \(([0-9]+)\)", value)
 
         if suffix is None:
-            return "{} (1)".format(value)
+            return u"{} (1)".format(value)
         else:
             base_name = suffix.group(1)
             counter = int(suffix.group(2))
             counter += 1
-            return "{} ({})".format(base_name, counter)
+            return u"{} ({})".format(base_name, counter)
 
     @staticmethod
     def _add_prefix(list_of_elements, prefix):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]