Commit Graph

1024 Commits

Author SHA1 Message Date
eba03e6b9b fix deprecated get_event_loop on 3.10+ 2024-11-16 09:13:23 +07:00
4df9edd551 fix on linux 2024-11-16 08:41:32 +07:00
bc35dd9170 forgot to push changes to ongeki 2024-11-15 21:42:42 +07:00
1af7bb81ba caching is probably not needed and is counterproductive 2024-11-15 21:40:14 +07:00
2f59d7b0d6 push the same limit/offset changes for maimai and ongeki 2024-11-15 21:37:23 +07:00
37d07e6035 wip: use SQL's limit/offset pagination for nextIndex/maxCount requests 2024-11-15 21:37:23 +07:00
cb009f6e23 wacca: tiny cleanup 2024-11-14 12:39:21 -05:00
2274b42358 Merge pull request '[database] make async' (#184) from beerpsi/artemis:fix/async-database into develop
Reviewed-on: Hay1tsme/artemis#184
2024-11-14 06:15:49 +00:00
789d50c406 use AsyncSession directly
see the warnings in https://docs.sqlalchemy.org/en/14/orm/extensions/asyncio.html#using-asyncio-scoped-session
2024-11-14 13:10:14 +07:00
4c33f4282a oops forgot a dependency on aiomysql 2024-11-14 12:38:00 +07:00
bc7524c8fc fix: make database async 2024-11-14 12:36:22 +07:00
1331d473c9 Merge pull request '[mai2] Implement GetGameRankingAPI . Fix photo merge , Add UserScoreRankingAPI handler' (#181) from SoulGateKey/artemis:develop into develop
Reviewed-on: Hay1tsme/artemis#181
2024-11-13 05:37:00 +00:00
b7a006f7ee core: pushing changes regarding MySQL ssl toggle that is now mandatory 2024-11-12 10:53:02 -05:00
65100920e3 Merge pull request '[chuni] web ui - customization support (user box, avatar, map icon, system voice)' (#182) from daydensteve/artemis-develop:chuni_ui_overhaul into develop
Reviewed-on: Hay1tsme/artemis#182
2024-11-12 12:03:14 +00:00
7a307b4d69 Merge pull request 'Fix mai2 photo merge problem and Add UserScoreRankingAPI handler' (#2) from mai2_tournament_support into develop
Reviewed-on: SoulGateKey/artemis#2
2024-11-12 05:42:20 +00:00
f4dff9b4c1 fix: mai2 photos cant be merged 2024-11-11 21:16:19 +08:00
8a6250bebd Formatted log print
Change log level
2024-11-11 21:11:33 +08:00
eb18ad22b8 hardened ui against the db not being upgraded or importer not being ran 2024-11-08 09:17:12 -05:00
954bd565d3 reduced db access with new chuni webui customizations 2024-11-07 20:28:28 -05:00
f272e97eae Formatted log print
Change log level
2024-11-06 02:44:07 +08:00
aa7ae6cb51 Formatted log print 2024-11-06 02:38:18 +08:00
3a44b18d91 fixed erroneously wide trophy select 2024-11-03 19:27:20 -05:00
c8186ccef0 fixed doc typo 2024-11-03 19:20:36 -05:00
4a701a5755 chuni doc updates 2024-11-03 19:19:05 -05:00
f5205801a8 Added customization unlock overrides 2024-11-03 19:12:49 -05:00
626ce6bd96 userbox, avatar, mapicon, and voice ui configuration 2024-11-03 18:37:09 -05:00
e49c70b738 more enums! 2024-11-03 16:37:27 -05:00
c2d4abcc26 db and import updates for userbox, avatar, voice, and map icon 2024-11-03 16:37:05 -05:00
2f6974cab6 new chuni ui images/directories 2024-11-03 08:48:13 -05:00
9b89cef51c ignore visual studio pro files 2024-11-03 08:46:12 -05:00
221517e310 TODO: GetUserScoreRankingApi 2024-10-30 12:37:18 +08:00
52b397f31f Merge remote-tracking branch 'origin/develop' into sgkdev
# Conflicts:
#	titles/mai2/schema/profile.py
2024-10-30 12:28:26 +08:00
b84e17a66b Merge pull request 'mai2_handle_get_game_ranking' (#1) from mai2_handle_get_game_ranking into develop
Reviewed-on: SoulGateKey/artemis#1
2024-10-30 04:18:53 +00:00
b6e7e0973b Delete unused dependency 2024-10-11 16:19:07 +00:00
598e4aad76 Update mai2/schema/score.py to support new handle_get_game_ranking 2024-10-11 16:16:40 +00:00
a673d9dabd Delete unused dependency 2024-10-11 16:12:53 +00:00
398fa9059d Update mai2/base.py using the ORM 2024-10-11 16:09:53 +00:00
29f4a6a696 revert 033c1aa776b7874b6e534efd664f0b7010271e68
revert Update 卖
2024-10-11 16:08:15 +00:00
033c1aa776 Update 卖 2024-10-11 16:06:17 +00:00
bbf41ac83f Merge branch 'develop' into mai2_handle_get_game_ranking 2024-10-11 15:56:05 +00:00
451754cf3c sao: fix my store 2024-10-06 16:09:09 -04:00
0cef797a8a mai2: rework photo uploads, relates to #67 2024-10-06 03:47:10 -04:00
58ae491a8c add pymysql to requirements.txt 2024-10-03 19:47:36 +00:00
3843ac6eb1 mai2: calc GetGameRanking result 2024-10-03 19:32:17 +00:00
ed5e7dc561 [chuni] Added truncation to long Title and Artist Name values on import (#178)
I noticed the importer failing to import music 523 (Niji-iro no Flügel) from an omni pack due to the artist name being crazy long.

To address this, I added truncation to max column value length for both the Title and Artist Name values. Considered doing this for the other 3 string fields as well but I can't imagine those ever being problematic.

Import now succeeds with a warning generated about the truncation occurring

Reviewed-on: Hay1tsme/artemis#178
Co-authored-by: daydensteve <daydensteve@gmail.com>
Co-committed-by: daydensteve <daydensteve@gmail.com>
2024-09-25 15:21:30 +00:00
b04840f3dd [chuni] Frontend favorites support (#176)
I had been itching for the favorites feature since I'm bad with japanese so figured I'd go ahead and add it. I've included a few pics to help visualize the changes.

### Summary of user-facing changes:
- New Favorites frontend page that itemizes favorites by genre for the current version (as selected on the Profile page). Favorites can be removed from this page via the Remove button
- Updated the Records page so that it only shows the playlog for the currently selected version and includes a "star" to the left of each title that can be clicked to add/remove favorites. When the star is yellow, its a favorite; when its a grey outline, its not. I figure its pretty straight forward
- The Records and new Favorites pages show the jacket image of each song now (The Importer was updated to convert the DDS files to PNGs on import)

### Behind-the-scenes changes:
- Fixed a bug in the chuni get_song method - it was inappropriately comparing the row id instead of the musicid (note this method was not used prior to adding favorites support)
- Overhauled the score scheme file to stop with all the hacky romVersion determination that was going on in various methods. To do this, I created a new ChuniRomVersion class that is populated with all base rom versions, then used to derive the internal integer version  number from the string stored in the DB. As written, this functionality can infer recorded rom versions when the playlog was entered using an update to the base version (e.g. 2.16  vs 2.15 for sunplus or 2.22 vs 2.20 for luminous).
- Made the chuni config version class safer as it would previously throw an exception if you gave it a version not present in the config file. This was done in support of the score overhaul to build up the initial ChuniRomVersion dict
- Added necessary methods to query/update the favorites table.

### Testing
- Frontend testing was performed with playlog data for both sunplus (2.16) and luminous (2.22) present. All add/remove permutations and images behavior was as expected
- Game testing was performed only with Luminous (2.22) and worked fine

Reviewed-on: Hay1tsme/artemis#176
Co-authored-by: daydensteve <daydensteve@gmail.com>
Co-committed-by: daydensteve <daydensteve@gmail.com>
2024-09-25 14:53:43 +00:00
1d8e31d4ab docs: add missing games 2024-09-23 14:46:48 -04:00
045465ed4e idz: disabled by default to silence warnings for people who don't feel like configuring games they don't intend to use 2024-09-23 14:46:41 -04:00
aa8e33a13e docs: add pokken to game specific info 2024-09-23 14:20:25 -04:00
ppc
f47175a144 [mai2] add buddies plus support (#177)
Adds favorite music support (there's an option in the results screen to star a song), handlers for new methods and fixes upsert failures for `userFavoriteList`.
The `UserIntimateApi` has been added but didn't seem to add any data during testing, and `CreateTokenApi`/`RemoveTokenApi` have also been added but I think they're only used during guest play.

---
Tested on 1.45 with no errors/game crashes (see logs). Card Maker hasn't been tested as I don't have a setup to play with.

Reviewed-on: Hay1tsme/artemis#177
Co-authored-by: ppc <albie@ppc.moe>
Co-committed-by: ppc <albie@ppc.moe>
2024-09-23 17:21:29 +00:00