Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Commit

Permalink
fix: print list values as comma separated string (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy71 committed Jun 14, 2021
1 parent de22f6b commit 680b088
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ def __str__(self):
name_builder = f"{section.upper()}_{option.upper()}"
value = getattr(self, name_builder, "not set")
if isinstance(value, list):
list_str = ""
for entry in value:
list_str += str(entry)
value = list_str
value = ', '.join(value)
result += f" {option}: {value}\n"
return result

Expand Down

0 comments on commit 680b088

Please sign in to comment.