Closed cmyui closed 7 months ago
The last_np field is used for keeping context of what the player's last /np'ed.
last_np
We currently parse the mods out of the /np in regex: https://github.com/osuAkatsuki/bancho.py/blob/a043f12e4a77f83faa180938214e02f79333872d/app/api/domains/cho.py#L74-L79
But we do not store this in the beatmap.last_np field after parsing from regex: 1) https://github.com/osuAkatsuki/bancho.py/blob/a043f12e4a77f83faa180938214e02f79333872d/app/api/domains/cho.py#L1226-L1230 2) https://github.com/osuAkatsuki/bancho.py/blob/a043f12e4a77f83faa180938214e02f79333872d/app/api/domains/cho.py#L402-L406
This data is useful so it can then later be used for e.g. pp calculation based on context.
If this is implemented it could directly be integrated into the !with command. Make sure to merge #356 first
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: https://github.com/osuAkatsuki/bancho.py/blob/a043f12e4a77f83faa180938214e02f79333872d/app/api/domains/cho.py#L74-L79
But we do not store this in the beatmap.last_np field after parsing from regex: 1) https://github.com/osuAkatsuki/bancho.py/blob/a043f12e4a77f83faa180938214e02f79333872d/app/api/domains/cho.py#L1226-L1230 2) https://github.com/osuAkatsuki/bancho.py/blob/a043f12e4a77f83faa180938214e02f79333872d/app/api/domains/cho.py#L402-L406
This data is useful so it can then later be used for e.g. pp calculation based on context.