fix: Don't show deferred I-Ds in AD's missing ballot list (#6162)
* fix: Don't show deferred I-Ds in AD's missing ballot list Fixes #6152 * Address code review comments
This commit is contained in:
parent
3c1fc3c0f9
commit
fb4002dbbd
|
@ -749,6 +749,7 @@ def docs_for_ad(request, name):
|
||||||
if (
|
if (
|
||||||
not ballot
|
not ballot
|
||||||
or doc.get_state_slug("draft") == "repl"
|
or doc.get_state_slug("draft") == "repl"
|
||||||
|
or doc.get_state_slug("draft-iesg") == "defer"
|
||||||
or (doc.telechat_date() and doc.telechat_date() > timezone.now().date())
|
or (doc.telechat_date() and doc.telechat_date() > timezone.now().date())
|
||||||
):
|
):
|
||||||
continue
|
continue
|
||||||
|
@ -801,7 +802,7 @@ def drafts_in_iesg_process(request):
|
||||||
|
|
||||||
def recent_drafts(request, days=7):
|
def recent_drafts(request, days=7):
|
||||||
slowcache = caches['slowpages']
|
slowcache = caches['slowpages']
|
||||||
cache_key = f'recentdraftsview{days}'
|
cache_key = f'recentdraftsview{days}'
|
||||||
cached_val = slowcache.get(cache_key)
|
cached_val = slowcache.get(cache_key)
|
||||||
if not cached_val:
|
if not cached_val:
|
||||||
since = timezone.now()-datetime.timedelta(days=days)
|
since = timezone.now()-datetime.timedelta(days=days)
|
||||||
|
|
Loading…
Reference in a new issue