[chronojump] chronojump-importer: imports Pulse table.
- From: Carles Pina i Estany <carlespina src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] chronojump-importer: imports Pulse table.
- Date: Tue, 1 Nov 2016 23:21:02 +0000 (UTC)
commit 657b235ceb2dd7f5897a0e69e4aeeedd7f59045f
Author: Carles Pina i Estany <carles pina cat>
Date: Wed Nov 2 00:20:13 2016 +0100
chronojump-importer: imports Pulse table.
src/chronojump-importer/chronojump_importer.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/chronojump-importer/chronojump_importer.py b/src/chronojump-importer/chronojump_importer.py
index 220b54f..4ac38dc 100755
--- a/src/chronojump-importer/chronojump_importer.py
+++ b/src/chronojump-importer/chronojump_importer.py
@@ -535,6 +535,13 @@ class ImportSession:
matches_columns=self.destination_db.column_names("PulseType",
["uniqueID"]),
avoids_duplicate_column="name")
+ # Imports Pulse table
+ pulse = self.source_db.read(table_name="Pulse",
+ where_condition="Pulse.sessionID={}".format(self.source_session))
+ pulse.update_session_ids(self.new_session_id)
+ pulse.update_ids("type", pulse_types, "old_name", "new_name")
+ self.destination_db.write(pulse, self.destination_db.column_names("Pulse", skip_columns=["uniqueID",
"personID", "sessionID"]))
+
def _import_person_session77(self):
# Imports PersonSession77
person_session_77 = self.source_db.read(table_name="PersonSession77",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]