# HG changeset patch # User casties # Date 1491234876 -7200 # Node ID 1f160e595167f0a67f0ee9e81e9bf2071d538afd # Parent 763b5d29fa5e9f027a4075cea0b6124d6e56a998 add log timestamp to csv file of lost nodes. diff -r 763b5d29fa5e -r 1f160e595167 importFromOpenMind/importer/check_ismi_transaction_log.py --- a/importFromOpenMind/importer/check_ismi_transaction_log.py Fri Mar 17 17:51:18 2017 +0100 +++ b/importFromOpenMind/importer/check_ismi_transaction_log.py Mon Apr 03 17:54:36 2017 +0200 @@ -35,12 +35,12 @@ return s -nodeCsvFieldList = ['node_type', 'id', 'row_id', 'object_class', 'user', 'public', 'type', +nodeCsvFieldList = ['_logtime', 'node_type', 'id', 'row_id', 'object_class', 'user', 'public', 'type', 'version', 'modification_time', 'system_status', 'content_type', 'source_id', 'source_modif', 'source_obj_class', 'target_id', 'target_modif', 'target_obj_class', 'own_value_b64'] -nodeCsvFieldMap = {'node_type':'node-type', 'id':'id', 'row_id':'row-id', 'object_class':'object-class', 'user':'user', +nodeCsvFieldMap = {'_logtime':'_logtime', 'node_type':'node-type', 'id':'id', 'row_id':'row-id', 'object_class':'object-class', 'user':'user', 'public':'public', 'type':'type', 'version':'version', 'modification_time':'mtime', 'system_status':'system-status', 'content_type':'content-type', 'source_id':'source-id', 'source_modif':'source-mtime', 'source_obj_class':'source-oc', @@ -417,6 +417,9 @@ log("DEBUG", "Error parsing line: %s"%line) continue + # add log time + data['_logtime'] = td['time'] + if omitDeleted and deleting > 0 and savingPrev > 0: # this should be a save prev from deleting delId = deleteCtx['id'] @@ -450,6 +453,9 @@ log("DEBUG", "Error parsing line: %s"%line) continue + # add log time + data['_logtime'] = td['time'] + if tid in saves: saves[tid].append(data)