From bb3437a35eaf6a3a6b10adfa944cacc09460ea73 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Wed, 21 Mar 2018 13:19:08 +0100 Subject: [PATCH] Remove support for id based searching of lists We only support name based searching from now on --- django/archives/mailarchives/views.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/django/archives/mailarchives/views.py b/django/archives/mailarchives/views.py index 1b989cf..37a4f69 100644 --- a/django/archives/mailarchives/views.py +++ b/django/archives/mailarchives/views.py @@ -594,7 +594,6 @@ def search(request): # Perform a search of the archives and return a JSON document. # Expects the following (optional) POST parameters: # q = query to search for - # l = comma separated list of lists to search for (DEPRECATED) # ln = comma separate list of listnames to search in # d = number of days back to search for, or -1 (or not specified) # to search the full archives @@ -615,12 +614,6 @@ def search(request): except: # If failing to parse list of lists, just search all lists = None - elif request.POST.has_key('l'): - try: - lists = [int(x) for x in request.POST['l'].split(',')] - except: - # If failing to parse list of lists, just search all - lists = None else: lists = None @@ -641,7 +634,6 @@ def search(request): list_sort = 'r' # Ok, we have all we need to do the search - curs = connection.cursor() if query.find('@') > 0: # This could be a messageid. So try to get that one specifically first. -- 2.39.5