prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  The non-wg list view contains things that do not belong.
  The list contains things that do not belong.  For example, 'geopriv' is listed as a non-wg list, but it is a concluded wg.  Maybe this should be a separate issue.
  
  _Originally posted by @russhousley in https://github.com/ietf-tools/datatracker/issues/3675#issuecomment-1075013354_
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `ietf/mailinglists/views.py`
  Content:
  ```
  1 # Copyright The IETF Trust 2007, All Rights Reserved
  2 
  3 import re
  4 
  5 from django.shortcuts import render
  6 
  7 import debug                            # pyflakes:ignore
  8 
  9 from ietf.group.models import Group
  10 from ietf.mailinglists.models import List
  11 
  12 def groups(request):
  13     groups = Group.objects.filter(type__features__acts_like_wg=True, list_archive__startswith='http').exclude(state__in=('bof', 'conclude')).order_by("acronym")
  14 
  15     return render(request, "mailinglists/group_archives.html", { "groups": groups } )
  16 
  17 def nonwg(request):
  18     groups = Group.objects.filter(type__features__acts_like_wg=True).exclude(state__in=['bof', 'conclude']).order_by("acronym")
  19 
  20     #urls = [ g.list_archive for g in groups if '.ietf.org' in g.list_archive ]
  21 
  22     wg_lists = set()
  23     for g in groups:
  24         wg_lists.add(g.acronym)
  25         match = re.search(r'^(https?://mailarchive.ietf.org/arch/(browse/|search/\?email-list=))(?P<name>[^/]*)/?$', g.list_archive)
  26         if match:
  27             wg_lists.add(match.group('name').lower())
  28 
  29     lists = List.objects.filter(advertised=True)
  30     #debug.show('lists.count()')
  31     lists = lists.exclude(name__in=wg_lists).order_by('name')
  32     #debug.show('lists.count()')
  33     return render(request, "mailinglists/nonwg.html", { "lists": lists } )
  34
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/ietf/mailinglists/views.py b/ietf/mailinglists/views.py
  --- a/ietf/mailinglists/views.py
  +++ b/ietf/mailinglists/views.py
  @@ -1,4 +1,4 @@
  -# Copyright The IETF Trust 2007, All Rights Reserved
  +# Copyright The IETF Trust 2007-2022, All Rights Reserved
   
   import re
   
  @@ -15,7 +15,7 @@
       return render(request, "mailinglists/group_archives.html", { "groups": groups } )
   
   def nonwg(request):
  -    groups = Group.objects.filter(type__features__acts_like_wg=True).exclude(state__in=['bof', 'conclude']).order_by("acronym")
  +    groups = Group.objects.filter(type__features__acts_like_wg=True).exclude(state__in=['bof']).order_by("acronym")
   
       #urls = [ g.list_archive for g in groups if '.ietf.org' in g.list_archive ]
  
verification_info: {"golden_diff": "diff --git a/ietf/mailinglists/views.py b/ietf/mailinglists/views.py\n--- a/ietf/mailinglists/views.py\n+++ b/ietf/mailinglists/views.py\n@@ -1,4 +1,4 @@\n-# Copyright The IETF Trust 2007, All Rights Reserved\n+# Copyright The IETF Trust 2007-2022, All Rights Reserved\n \n import re\n \n@@ -15,7 +15,7 @@\n     return render(request, \"mailinglists/group_archives.html\", { \"groups\": groups } )\n \n def nonwg(request):\n-    groups = Group.objects.filter(type__features__acts_like_wg=True).exclude(state__in=['bof', 'conclude']).order_by(\"acronym\")\n+    groups = Group.objects.filter(type__features__acts_like_wg=True).exclude(state__in=['bof']).order_by(\"acronym\")\n \n     #urls = [ g.list_archive for g in groups if '.ietf.org' in g.list_archive ]\n", "issue": "The non-wg list view contains things that do not belong.\nThe list contains things that do not belong.  For example, 'geopriv' is listed as a non-wg list, but it is a concluded wg.  Maybe this should be a separate issue.\r\n\r\n_Originally posted by @russhousley in https://github.com/ietf-tools/datatracker/issues/3675#issuecomment-1075013354_\n", "before_files": [{"content": "# Copyright The IETF Trust 2007, All Rights Reserved\n\nimport re\n\nfrom django.shortcuts import render\n\nimport debug                            # pyflakes:ignore\n\nfrom ietf.group.models import Group\nfrom ietf.mailinglists.models import List\n\ndef groups(request):\n    groups = Group.objects.filter(type__features__acts_like_wg=True, list_archive__startswith='http').exclude(state__in=('bof', 'conclude')).order_by(\"acronym\")\n\n    return render(request, \"mailinglists/group_archives.html\", { \"groups\": groups } )\n\ndef nonwg(request):\n    groups = Group.objects.filter(type__features__acts_like_wg=True).exclude(state__in=['bof', 'conclude']).order_by(\"acronym\")\n\n    #urls = [ g.list_archive for g in groups if '.ietf.org' in g.list_archive ]\n\n    wg_lists = set()\n    for g in groups:\n        wg_lists.add(g.acronym)\n        match = re.search(r'^(https?://mailarchive.ietf.org/arch/(browse/|search/\\?email-list=))(?P<name>[^/]*)/?$', g.list_archive)\n        if match:\n            wg_lists.add(match.group('name').lower())\n\n    lists = List.objects.filter(advertised=True)\n    #debug.show('lists.count()')\n    lists = lists.exclude(name__in=wg_lists).order_by('name')\n    #debug.show('lists.count()')\n    return render(request, \"mailinglists/nonwg.html\", { \"lists\": lists } )\n", "path": "ietf/mailinglists/views.py"}], "after_files": [{"content": "# Copyright The IETF Trust 2007-2022, All Rights Reserved\n\nimport re\n\nfrom django.shortcuts import render\n\nimport debug                            # pyflakes:ignore\n\nfrom ietf.group.models import Group\nfrom ietf.mailinglists.models import List\n\ndef groups(request):\n    groups = Group.objects.filter(type__features__acts_like_wg=True, list_archive__startswith='http').exclude(state__in=('bof', 'conclude')).order_by(\"acronym\")\n\n    return render(request, \"mailinglists/group_archives.html\", { \"groups\": groups } )\n\ndef nonwg(request):\n    groups = Group.objects.filter(type__features__acts_like_wg=True).exclude(state__in=['bof']).order_by(\"acronym\")\n\n    #urls = [ g.list_archive for g in groups if '.ietf.org' in g.list_archive ]\n\n    wg_lists = set()\n    for g in groups:\n        wg_lists.add(g.acronym)\n        match = re.search(r'^(https?://mailarchive.ietf.org/arch/(browse/|search/\\?email-list=))(?P<name>[^/]*)/?$', g.list_archive)\n        if match:\n            wg_lists.add(match.group('name').lower())\n\n    lists = List.objects.filter(advertised=True)\n    #debug.show('lists.count()')\n    lists = lists.exclude(name__in=wg_lists).order_by('name')\n    #debug.show('lists.count()')\n    return render(request, \"mailinglists/nonwg.html\", { \"lists\": lists } )\n", "path": "ietf/mailinglists/views.py"}]}