Skip to content

Commit

Permalink
refactor(core,utils): update style, use f-string
Browse files Browse the repository at this point in the history
Signed-off-by: David Wallace <[email protected]>
  • Loading branch information
MyPyDavid committed Dec 4, 2024
1 parent dcc490f commit 091458f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rdmo/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,11 @@ def get_languages():
languages = []
for i in range(5):
try:
language = settings.LANGUAGES[i][0], settings.LANGUAGES[i][1],\
'lang%i' % (i + 1)
language = (
settings.LANGUAGES[i][0],
settings.LANGUAGES[i][1],
f'lang{i + 1}'
)
languages.append(language)
except IndexError:
pass
Expand Down

0 comments on commit 091458f

Please sign in to comment.