Mercurial > hg > drupalISMI
changeset 53:1f160e595167
add log timestamp to csv file of lost nodes.
author | casties |
---|---|
date | Mon, 03 Apr 2017 17:54:36 +0200 |
parents | 763b5d29fa5e |
children | b9a6e596ebe4 |
files | importFromOpenMind/importer/check_ismi_transaction_log.py |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)