ONGEKI Rival Functionality #36

Merged
Midorica merged 10 commits from 2TT/artemis:develop into develop 2023-09-23 16:08:16 +00:00
Contributor

Changes

  • Added Frontend for ONGEKI rival management
  • Added / Modified put_rival and delete_rival
  • Fixed handle_get_user_rival_api_request and handle_get_user_rival_data_api_request
# Changes * Added Frontend for ONGEKI rival management * Added / Modified `put_rival` and `delete_rival` * Fixed `handle_get_user_rival_api_request` and `handle_get_user_rival_data_api_request`
2TT added 8 commits 2023-09-01 22:53:56 +00:00
2TT added 1 commit 2023-09-02 06:39:44 +00:00
2TT changed title from develop to ONGEKI Rival Functionality 2023-09-06 06:30:08 +00:00
Contributor

Thanks for the PR!

I just checked the code and I see some problems with it.

The first issue I noticed is in the file frontend.py L46, if you have an empty rival_list then rival_info is never set and lead to a crash because the variable is unset.

The second question I have is the addition of a new function get_profile_data_ignore_version() frontend.py L38. You added the function but only check for the profile with the version number 7 (bright MEMORY) later, you could either directly use the get_profile(aime_id, version=7) function or even better get the latest profile version or give the choice which profile version should be loaded, bright (6) or bright MEMORY (7). Also the function get_profile_data_ignore_version() just gets a single profile and that one could even be older than version 7.

I hope I explained the issues I have with the submitted code properly and I hope you can fix them so they can be merged :)

Thanks for the PR! I just checked the code and I see some problems with it. The first issue I noticed is in the file [frontend.py L46](https://gitea.tendokyu.moe/Hay1tsme/artemis/src/commit/d584b93ca5d5ed6d8b2d80af9273e753c45c22b0/titles/ongeki/frontend.py#L46), if you have an empty `rival_list` then `rival_info` is never set and lead to a crash because the variable is unset. The second question I have is the addition of a new function `get_profile_data_ignore_version()` [frontend.py L38](https://gitea.tendokyu.moe/Hay1tsme/artemis/src/commit/d584b93ca5d5ed6d8b2d80af9273e753c45c22b0/titles/ongeki/frontend.py#L38). You added the function but only check for the profile with the version number 7 (bright MEMORY) later, you could either directly use the `get_profile(aime_id, version=7)` function or even better get the latest profile version or give the choice which profile version should be loaded, `bright (6)` or `bright MEMORY (7)`. Also the function `get_profile_data_ignore_version()` just gets a single profile and that one could even be older than version 7. I hope I explained the issues I have with the submitted code properly and I hope you can fix them so they can be merged :)
2TT added 1 commit 2023-09-08 21:55:32 +00:00
Author
Contributor
  • Added a version select (saved for session)
  • rival_info is now defined even with an empty rival list
  • removed get_profile_data_ignore_version()
* Added a version select (saved for session) * `rival_info` is now defined even with an empty rival list * removed `get_profile_data_ignore_version()`
Collaborator

Hello 2TT,

I might give it a try this weekend just to be sure everything works properly before approving the merge.

At a first glance, everything appears to be good and I also see the small fix you did regarding the typo for one of the request which I totally missed

Thank you

Hello 2TT, I might give it a try this weekend just to be sure everything works properly before approving the merge. At a first glance, everything appears to be good and I also see the small fix you did regarding the typo for one of the request which I totally missed Thank you
Collaborator

Hello 2TT,

I just found some time to test the code and everything is working

The PR will now be approved

Thank you!

Hello 2TT, I just found some time to test the code and everything is working The PR will now be approved Thank you!
Midorica merged commit 91791813dc into develop 2023-09-23 16:08:16 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Hay1tsme/artemis#36
No description provided.