Skip to content

Commit

Permalink
Silence Flake8 E275 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisRayM committed Aug 22, 2022
1 parent 449c693 commit 1544c6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions onadata/apps/viewer/xls_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ def _generate_unique_sheet_name(self, sheet_name):
else:
i = 1
unique_name = sheet_name
while(unique_name in self._sheets):
while (unique_name in self._sheets):
number_len = len(text(i))
allowed_name_len = self.sheet_name_limit - number_len
# make name required len
if(len(unique_name) > allowed_name_len):
if (len(unique_name) > allowed_name_len):
unique_name = unique_name[0:allowed_name_len]
unique_name = "{0}{1}".format(unique_name, i)
i = i + 1
Expand Down

0 comments on commit 1544c6e

Please sign in to comment.