chore: cleanup typos

This commit is contained in:
Robert Sparks 2023-08-17 16:24:22 -05:00
parent 7441413032
commit 22dc5b6dc7
No known key found for this signature in database
GPG key ID: 6E2A6A5775F91318
4 changed files with 6 additions and 7 deletions

View file

@ -60,7 +60,7 @@ def fill_in_document_table_attributes(docs, have_telechat_date=False):
doc_dict = dict((d.pk, d) for d in docs)
doc_ids = list(doc_dict.keys())
rfcs = dict((d.pk, d.name) for d in docs if d.type_id='rfc')
rfcs = dict((d.pk, d.name) for d in docs if d.type_id == "rfc")
# latest event cache
event_types = ("published_rfc",

View file

@ -15,7 +15,7 @@ from django.utils import timezone
import debug # pyflakes:ignore
from ietf.doc.factories import DocumentFactory, WgDraftFactory, WgRfcFactory. RfcFactory
from ietf.doc.factories import DocumentFactory, WgDraftFactory, WgRfcFactory, RfcFactory
from ietf.group.factories import RoleFactory
from ietf.ipr.factories import HolderIprDisclosureFactory, GenericIprDisclosureFactory, IprEventFactory
from ietf.ipr.mail import (process_response_email, get_reply_to, get_update_submitter_emails,

View file

@ -38,7 +38,6 @@ from ietf.message.models import Message
from ietf.message.utils import infer_message
from ietf.name.models import IprLicenseTypeName
from ietf.person.models import Person
from ietf.secr.utils.document import is_draft
from ietf.utils import log
from ietf.utils.draft_search import normalize_draftname
from ietf.utils.mail import send_mail, send_mail_message

View file

@ -249,7 +249,7 @@ def document_stats(request, stats_type=None):
bins = defaultdict(set)
for name, author_count in document_qs.values_list("name").annotate(Count("documentauthor")).values_list("name","documentauthor__count")
for name, author_count in document_qs.values_list("name").annotate(Count("documentauthor")).values_list("name","documentauthor__count"):
bins[author_count or 0].add(name)
series_data = []
@ -265,7 +265,7 @@ def document_stats(request, stats_type=None):
bins = defaultdict(set)
for name, pages in document_qs.values_list("name", "pages")):
for name, pages in document_qs.values_list("name", "pages"):
bins[pages or 0].add(name)
series_data = []
@ -284,7 +284,7 @@ def document_stats(request, stats_type=None):
bins = defaultdict(set)
for name, words in document_qs.values_list("name", "words")):
for name, words in document_qs.values_list("name", "words"):
bins[put_into_bin(words, bin_size)].add(canonical_name)
series_data = []
@ -354,7 +354,7 @@ def document_stats(request, stats_type=None):
bins = defaultdict(set)
for name, formal_language_name in document_qs.values_list("name", "formal_languages__name")):
for name, formal_language_name in document_qs.values_list("name", "formal_languages__name"):
bins[formal_language_name or ""].add(canonical_name)
series_data = []