mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-13 21:39:23 +00:00
Added back the comment
This commit is contained in:
@ -185,6 +185,7 @@ def get_group(*, pk: int = None, name: str = None) -> Optional[Group]:
|
|||||||
if pk is None and name is None:
|
if pk is None and name is None:
|
||||||
raise ValueError("Either pk or name must be set")
|
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(" ", "_")
|
pk_or_name: Union[str, int] = pk if pk is not None else name.replace(" ", "_")
|
||||||
group = cache.get(f"sith_group_{pk_or_name}")
|
group = cache.get(f"sith_group_{pk_or_name}")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user