[chronojump] Fix chronojump-importer: when importing twice the same session imports the jumps.



commit e3bff5e8381ea6a50f1de4f99e858ed1259c6603
Author: Carles Pina i Estany <carles pina cat>
Date:   Fri Jul 28 11:37:28 2017 +0200

    Fix chronojump-importer: when importing twice the same session imports the jumps.
    
    Importing the same session twice should import the jumps even if they
    are all the same (only the sessionID differs). This wasn't the case, due
    to some similar code like the jumpTypes it was skipping jumps that only
    differed of the sessionID.

 src/chronojump-importer/chronojump_importer.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/chronojump-importer/chronojump_importer.py b/src/chronojump-importer/chronojump_importer.py
index 3f22d9e..fda4b0e 100755
--- a/src/chronojump-importer/chronojump_importer.py
+++ b/src/chronojump-importer/chronojump_importer.py
@@ -510,7 +510,7 @@ class ImportSession:
         jump.update_session_ids(self.new_session_id)
         jump.update_ids("type", jump_types, "old_name", "new_name")
 
-        self.destination_db.write(table=jump, matches_columns=self.destination_db.column_names("Jump", 
skip_columns=["uniqueID", "personID", "sessionID"]))
+        self.destination_db.write(table=jump, matches_columns=self.destination_db.column_names("Jump", 
skip_columns=["uniqueID", "personID"]))
 
     def _import_runs(self):
         # Imports RunTypes table


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