-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: ratings repository #599
Conversation
app/repositories/ratings.py
Outdated
return cast(Rating, dict(_rating._mapping)) | ||
|
||
|
||
async def fetch_all(map_md5: str) -> list[Rating]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be a bit more flexible - we can make it fetch_many which allows for optional pagination, map md5 as an optional filter as well as an optional user id filter
Made some changes -- condensed diff here: https://github.com/osuAkatsuki/bancho.py/pull/599/files/d3133736434027c6dcd4117fddead922c28e905b..f2eed79d3ab034f3055cc0300671ec46bcecfe70 |
67db503
to
f2eed79
Compare
There is also bancho.py/app/objects/beatmap.py Line 546 in fdb6cb6
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested & working
Describe your changes
Related Issues / Projects
Checklist