Update Discord trade listings
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user