Fix missing space before "and" in package list (#357)

This commit is contained in:
Hugo Locurcio 2022-01-23 18:21:29 +01:00 committed by GitHub
parent 1c63bf0beb
commit 56539bb369
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -190,7 +190,7 @@ def _package_list(packages: List[str]):
packages[len(packages) - 1] = "and " + packages[len(packages) - 1]
packages_list = ", ".join(packages)
else:
packages_list = "and ".join(packages)
packages_list = " and ".join(packages)
return packages_list
@action("Send WIP package notification")
@ -287,4 +287,4 @@ def delete_inactive_users():
users = User.query.filter(User.is_active==False, User.packages==None, User.forum_topics==None, User.rank==UserRank.NOT_JOINED).all()
for user in users:
db.session.delete(user)
db.session.commit()
db.session.commit()