Skip to content

Commit

Permalink
suppress lint warning protected-access
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-muchiri committed Jan 17, 2025
1 parent d38c89b commit 6724834
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions onadata/apps/viewer/models/data_dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ def create_export_columns_register(sender, instance=None, created=False, **kwarg
# Avoid cyclic import by using importlib
csv_builder = importlib.import_module("onadata.libs.utils.csv_builder")
ordered_columns = OrderedDict()
# pylint: disable=protected-access
csv_builder.CSVDataFrameBuilder._build_ordered_columns(
instance.survey, ordered_columns
)
Expand Down
1 change: 1 addition & 0 deletions onadata/libs/utils/logger_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1552,6 +1552,7 @@ def _update_export_columns_register(instance: Instance, metadata: MetaData) -> N
data = instance.get_full_dict()

for key, value in data.items():
# pylint: disable=protected-access
csv_builder._reindex(
key,
value,
Expand Down

0 comments on commit 6724834

Please sign in to comment.