Skip to content

Commit

Permalink
refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-muchiri committed Oct 22, 2024
1 parent d77a2f7 commit 0a10caa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions onadata/libs/utils/csv_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,9 +854,7 @@ def export_to(self, path, cursor, dataview=None):
)

# add extra columns
for column in filter(
lambda col: col in dataview.columns, self.extra_columns
):
for column in filter(lambda col: col not in columns, dataview.columns):
if column in self.extra_columns:
columns.append(column)

Expand Down

0 comments on commit 0a10caa

Please sign in to comment.