replace constructor call with a literal

https://sonarcloud.io/project/issues?open=AZeMhhlEyR1Wrs09sNyb&id=s-allius_tsun-gen3-proxy
This commit is contained in:
Stefan Allius
2025-06-21 11:21:19 +02:00
parent 41168fbb4d
commit 0980487daa
2 changed files with 4 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ class Server():
@app.context_processor
def utility_processor():
return dict(version=self.version)
return {'version': self.version}
def parse_args(self, arg_list: list[str] | None):
parser = argparse.ArgumentParser()

View File

@@ -29,9 +29,9 @@ def get_tz():
@web.context_processor
def utility_processor():
return dict(lang=babel_get_locale(),
lang_str=LANGUAGES.get(str(babel_get_locale()), "English"),
languages=LANGUAGES)
return {'lang': babel_get_locale(),
'lang_str': LANGUAGES.get(str(babel_get_locale()), "English"),
'languages': LANGUAGES}
@web.route('/language/<language>')