removed unnessesary features

This commit is contained in:
2026-04-27 19:31:16 +02:00
parent 1b24d484af
commit 0d7a877584
5 changed files with 14 additions and 20 deletions

View File

@@ -1,17 +1,5 @@
def classify_price(robux: int) -> str:
if robux <= 99:
return "low"
elif robux <= 499:
return "medium"
else:
return "high"
def enrich_event(event, game: str):
"""Adds game tag and derived fields."""
"""Add the game tag to the event. All other data passes through unchanged."""
event.data = event.data or {}
# Inject game name into event data as a tag
event.data["game"] = game
# Derive price group for robux purchases
if event.type == "robux_purchase" and "robux" in event.data:
event.data["priceGroup"] = classify_price(event.data["robux"])
return event