Fix missing space before "and" in package list
Example message which I recently received: > The following packages may be outdated: Gaugesand More Ores This should now be: > The following packages may be outdated: Gauges and More Ores
This commit is contained in:
parent
85a178d90e
commit
865e0e5886
|
@ -187,10 +187,10 @@ def run_update_config():
|
||||||
def _package_list(packages: List[str]):
|
def _package_list(packages: List[str]):
|
||||||
# Who needs translations?
|
# Who needs translations?
|
||||||
if len(packages) >= 3:
|
if len(packages) >= 3:
|
||||||
packages[len(packages) - 1] = "and " + packages[len(packages) - 1]
|
packages[len(packages) - 1] = " and " + packages[len(packages) - 1]
|
||||||
packages_list = ", ".join(packages)
|
packages_list = ", ".join(packages)
|
||||||
else:
|
else:
|
||||||
packages_list = "and ".join(packages)
|
packages_list = " and ".join(packages)
|
||||||
return packages_list
|
return packages_list
|
||||||
|
|
||||||
@action("Send WIP package notification")
|
@action("Send WIP package notification")
|
||||||
|
|
Loading…
Reference in New Issue