Skip to content

Commit

Permalink
Add '_date_modified' to the ADDITIONAL_COLUMNS list
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisRayM committed Feb 4, 2021
1 parent d16401c commit 5f0907d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion onadata/libs/tests/utils/test_csv_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions onadata/libs/utils/csv_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
"""
Expand Down

0 comments on commit 5f0907d

Please sign in to comment.