Skip to content

Conversation

g1-1-1
Copy link
Contributor

@g1-1-1 g1-1-1 commented May 14, 2023

Describe your changes

i made !pool info list alphabetically, then numerically

previous functionality
alt

new functionality
alt

i made !pool add list back whatever mod slot the user selected, instead of just the beatmap and pool name

previous functionality
Peter Lambert - osu! Tutorial added to HWC22.

new functionality
Peter Lambert - osu! Tutorial added to HWC22 as HD1.

please ignore the custom embeds and the "FM" entry. those are not included in this pull request.

Related Issues / Projects

Checklist

  • I've manually tested my code
  • The changes pass pre-commit checks (make lint)
  • The changes follow coding style

@g1-1-1 g1-1-1 requested a review from cmyui as a code owner May 14, 2023 01:16
for (mods, slot), bmap in pool.maps.items():
for (mods, slot), bmap in sorted(
pool.maps.items(),
key=lambda x: (Mods.to_string(x[0][0]), x[0][1]),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i wonder if this would benefit from casefold.. i think we should normalize all mod inputs (maybe we already do) to solve any inconsistencies in casing

Copy link
Member

@cmyui cmyui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 👍🏻

@cmyui cmyui merged commit 5602e6e into osuAkatsuki:master May 14, 2023
@cmyui cmyui added the enhancement New feature or request label May 14, 2023
@cmyui cmyui changed the title fix: pool information being ordered alphabetically and numerically, give full response to user on !pool add success feat: pool information being ordered alphabetically and numerically, give full response to user on !pool add success May 14, 2023
@g1-1-1 g1-1-1 deleted the patch-4 branch May 18, 2023 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants