The usage harness cannot read the query source badge #205

Merged
kami merged 5 commits from task/662-usage-harness-source-badge into master 2026-08-08 19:59:15 +02:00
Showing only changes of commit a37c4138a1 - Show all commits
+5 -1
View File
@@ -54,7 +54,11 @@ def turn(text):
q = urllib.parse.parse_qs(urllib.parse.urlparse(loc).query)
return {
"reply": q.get("r", [""])[0],
"source": q.get("src", q.get("source", [""]))[0],
# "s", not "src". cmd/mavweb/chat.go writes the badge under that
# name, and reading the wrong one cost both fortnight runs their
# source column: every finding in those docs is inferred from the
# reply wording instead.
"source": q.get("s", [""])[0],
"trace": q.get("t", [""])[0],
"secs": dt,
}