26 Oct
2022
26 Oct
'22
12:08 a.m.
Hey.
Looking at other code, "subject" is a method.
I fixed it by correcting the code. is this a bug? python version issue?
- /opt/mailman/venv/lib/python3.10/site-packages/hyperkitty/views/thread.py
411 @check_mlist_private 412 def reattach_suggest(request, mlist_fqdn, threadid): 413 mlist = get_object_or_404(MailingList, name=mlist_fqdn) 414 thread = get_object_or_404(Thread, mailinglist=mlist, thread_id=threadid) 415 416 default_search_query = stripped_subject( # change: thread.subject to thread.subject() 417 mlist, thread.subject()).lower().replace("re:", "")
- /opt/mailman/venv/lib/python3.10/site-packages/hyperkitty/models/thread.py
69 def __str__(self): # change: thread.subject to thread.subject() 70 return self.subject()