From bdb3ab366fba2cd7e1ae799b5b75e46c63d95bf3 Mon Sep 17 00:00:00 2001 From: Adarnof Date: Thu, 22 Mar 2018 17:59:24 -0400 Subject: [PATCH] Group list API endpoint has moved. Allow infinite group cache age. Thanks @TargetZ3R0 --- allianceauth/services/modules/discourse/manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/allianceauth/services/modules/discourse/manager.py b/allianceauth/services/modules/discourse/manager.py index 1d98475d..d36f20c4 100644 --- a/allianceauth/services/modules/discourse/manager.py +++ b/allianceauth/services/modules/discourse/manager.py @@ -7,7 +7,7 @@ from hashlib import md5 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): @@ -23,7 +23,7 @@ class DiscourseError(Exception): ENDPOINTS = { 'groups': { 'list': { - 'path': "/admin/groups.json", + 'path': "/groups/search.json", 'method': 'get', 'args': { 'required': [],