Add mods to beatmap.last_np #478
Labels
enhancement
New feature or request
good first issue
Good for newcomers
Priority 2
A typical task - new functionality, organizational work on our software
The
last_np
field is used for keeping context of what the player's last /np'ed.We currently parse the mods out of the /np in regex:
bancho.py/app/api/domains/cho.py
Lines 74 to 79 in a043f12
But we do not store this in the beatmap.last_np field after parsing from regex:
bancho.py/app/api/domains/cho.py
Lines 1226 to 1230 in a043f12
bancho.py/app/api/domains/cho.py
Lines 402 to 406 in a043f12
This data is useful so it can then later be used for e.g. pp calculation based on context.
The text was updated successfully, but these errors were encountered: