mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 12:30:15 +02:00
Group list API endpoint has moved.
Allow infinite group cache age. Thanks @TargetZ3R0 (cherry-picked from bdb3ab366fba2cd7e1ae799b5b75e46c63d95bf3)
This commit is contained in:
parent
c69b41738b
commit
69a686a98a
@ -8,7 +8,7 @@ from hashlib import md5
|
|||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
GROUP_CACHE_MAX_AGE = int(getattr(settings, 'DISCOURSE_GROUP_CACHE_MAX_AGE', 2 * 60 * 60)) # default 2 hours
|
GROUP_CACHE_MAX_AGE = getattr(settings, 'DISCOURSE_GROUP_CACHE_MAX_AGE', 2 * 60 * 60) # default 2 hours
|
||||||
|
|
||||||
|
|
||||||
class DiscourseError(Exception):
|
class DiscourseError(Exception):
|
||||||
@ -24,7 +24,7 @@ class DiscourseError(Exception):
|
|||||||
ENDPOINTS = {
|
ENDPOINTS = {
|
||||||
'groups': {
|
'groups': {
|
||||||
'list': {
|
'list': {
|
||||||
'path': "/admin/groups.json",
|
'path': "/groups/search.json",
|
||||||
'method': 'get',
|
'method': 'get',
|
||||||
'args': {
|
'args': {
|
||||||
'required': [],
|
'required': [],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user