Update Discord trade listings

This commit is contained in:
2026-11-21 00:42:57 +01:00
parent d29892eac5
commit 6b152854bd
21 changed files with 4702 additions and 4149 deletions
+4 -1
View File
@@ -6,7 +6,7 @@ from collections import Counter
import re
from calculate_interest_index import variants
from extract_exchange_quotes import FOR, parse_side
from extract_exchange_quotes import FOR, only_stat_specific_inventory, parse_side
SEPARATOR = re.compile(r"\s*(?:\+|,|\band\b)\s*", re.IGNORECASE)
@@ -69,6 +69,9 @@ def extract_bundle_quotes(rows: list[dict[str, str]]) -> list[dict]:
continue
if not set(offered) <= inventory or set(offered) & set(requested):
continue
if any(only_stat_specific_inventory(row.get("offer") or "", unit)
for unit in offered):
continue
key = (author, tuple(sorted(offered.items())), tuple(sorted(requested.items())))
if key in seen:
continue