From 5f0907dc48506e7f162eea83fe9a375e3efc4f73 Mon Sep 17 00:00:00 2001 From: Davis Raymond Muro Date: Thu, 4 Feb 2021 15:00:32 +0300 Subject: [PATCH] Add '_date_modified' to the ADDITIONAL_COLUMNS list --- onadata/libs/tests/utils/test_csv_builder.py | 2 +- onadata/libs/utils/csv_builder.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/onadata/libs/tests/utils/test_csv_builder.py b/onadata/libs/tests/utils/test_csv_builder.py index 180ff1adcb..936b1ec634 100644 --- a/onadata/libs/tests/utils/test_csv_builder.py +++ b/onadata/libs/tests/utils/test_csv_builder.py @@ -502,7 +502,7 @@ def test_csv_column_indices_in_groups_within_repeats(self): # remove dynamic fields ignore_list = [ '_uuid', 'meta/instanceID', 'formhub/uuid', '_submission_time', - '_id', '_bamboo_dataset_id' + '_id', '_bamboo_dataset_id', '_date_modified' ] for item in ignore_list: data_0.pop(item) diff --git a/onadata/libs/utils/csv_builder.py b/onadata/libs/utils/csv_builder.py index 34c048311a..2f90202ec8 100644 --- a/onadata/libs/utils/csv_builder.py +++ b/onadata/libs/utils/csv_builder.py @@ -16,7 +16,7 @@ from onadata.apps.viewer.models.parsed_instance import (ParsedInstance, query_data) from onadata.libs.exceptions import NoRecordsFoundError -from onadata.libs.utils.common_tags import (ATTACHMENTS, BAMBOO_DATASET_ID, +from onadata.libs.utils.common_tags import (ATTACHMENTS, BAMBOO_DATASET_ID, DATE_MODIFIED, DELETEDAT, DURATION, EDITED, GEOLOCATION, ID, MEDIA_ALL_RECEIVED, MEDIA_COUNT, @@ -150,7 +150,7 @@ class AbstractDataFrameBuilder(object): ADDITIONAL_COLUMNS = [ ID, UUID, SUBMISSION_TIME, TAGS, NOTES, VERSION, DURATION, SUBMITTED_BY, TOTAL_MEDIA, MEDIA_COUNT, - MEDIA_ALL_RECEIVED] + MEDIA_ALL_RECEIVED, DATE_MODIFIED] BINARY_SELECT_MULTIPLES = False VALUE_SELECT_MULTIPLES = False """