Added back the comment

This commit is contained in:
Julien Constant 2023-05-12 13:27:30 +02:00
parent 0283643cbe
commit ef06094eda
No known key found for this signature in database
GPG Key ID: 816E7C070117E5B7
1 changed files with 1 additions and 0 deletions

View File

@ -185,6 +185,7 @@ def get_group(*, pk: int = None, name: str = None) -> Optional[Group]:
if pk is None and name is None:
raise ValueError("Either pk or name must be set")
# replace space characters to hide warnings with memcached backend
pk_or_name: Union[str, int] = pk if pk is not None else name.replace(" ", "_")
group = cache.get(f"sith_group_{pk_or_name}")