260 Commits

Author SHA1 Message Date
Lost-MSth
e6cb0f8981 Update README.md 2022-11-05 21:31:31 +08:00
Lost-MSth
4a5083c597 [Bug Fix][Enhance] Endless loop & waitress log
- Fix a bug due to 6fcca17918 that there is a endless loop in calculating recent 10 updating

- Add info log for `waitress`
2022-11-05 21:17:44 +08:00
Lost-MSth
78d28f8886 [Enhance][Bug fix] Waitress & API token
- Fix a bug that using API token in config file will not success
- Add deployment mode `waitress`
2022-11-03 13:42:39 +08:00
Lost-MSth
3fde61c639 [Bug fix] Hot fix for a funny thing
- Fix a bug that the order of the users on the score ranks is chaotic
2022-11-01 18:46:36 +08:00
Lost-MSth
cf350842ac [Refactor] Performance optimization
- Put download token in memory database
- Accelerate multiple querying in `best_score` table
2022-11-01 18:08:02 +08:00
Lost-MSth
e04c8ecf2d [Bug fix] Hot fix for typing error & import error 2022-10-31 19:29:31 +08:00
Lost-MSth
4da3f38f6e [Enhance] Performance optimization
- Change journal mode to WAL and enlarge cache size for sqlite3 database
- Use monkey patch to do asynchrony
- Make gevent use Flask's logger
2022-10-31 17:49:19 +08:00
Lost-MSth
40630fff4d [Refactor] Database initialization and migration
- Code refactoring for database initialization and migration
2022-10-21 18:19:37 +08:00
Lost-MSth
ca03360f0c [Enhance] API query param
- Add support for the `query` param in `GET` requests
2022-10-19 20:08:41 +08:00
Lost-MSth
d150553e6b [Enhance] Some config options & Login limiter
- Add limiter for login and API login
- Add some config options

- Delete `setting.py` files
2022-10-16 17:07:32 +08:00
Lost-MSth
ba36190f30 [Enhance][Bug fix] Improve setting file & ...
- Fix a small bug that `best30` of API cannot have scores whose songs are not in database
- At present the setting file can be a module or a file with some of options
- Limiter can have multiple rules together now
2022-10-16 15:49:49 +08:00
Lost-MSth
68a83a29d2 [Enhance] Add limiter & Building API
- Add a custom limiter and use it for limiting users' download instead of using database
> So add a requirement `limits`.

- Fix a character's value
- Change the email max length to 64
- Change something about API's roles and powers
- Add an API endpoint for getting users' roles and powers
2022-10-12 15:27:45 +08:00
Lost-MSth
2a3ee0f0c7 Merge pull request #69 from Lost-MSth/dev
Update to v2.10.0
v2.10.0
2022-10-04 18:55:55 +08:00
Lost-MSth
a04df8bba6 Update README.md 2022-10-04 18:53:40 +08:00
Lost-MSth
fb110fd01c Update to v2.10.0 2022-10-04 18:51:49 +08:00
Lost-MSth
7a614eaa57 [Enhance] Add download error status code 2022-10-04 00:28:19 +08:00
Lost-MSth
8f1c28eb5c [Enhance] API & LinkPlay & something else
- Add song names for getting the score list (For API)
- Try to ensure thread safety in Link Play (twice again)
- Small change about database timeout
- Have a try to use `nginx` and `gevent` (Yes. I ensure it works well. This will not be viewed as a formal and necessary update.)
2022-10-03 23:46:52 +08:00
Lost-MSth
299c8c582c [Bug Fix][Enhance] About Link Play
- Fix a bug that the room host will be changed late when finishing a song
- Add logging module for linkplay server
2022-09-19 23:13:51 +08:00
Lost-MSth
6298b37ea2 Rearrange Link Play module
- Try to ensure thread safety by using TCP socket
2022-09-19 01:46:01 +08:00
Lost-MSth
b1575af0db Update the tool update_song.py 2022-09-10 20:34:21 +08:00
Lost-MSth
7bf43c3e07 Database performance optimization for large quantities
- Add two indices for avoiding possible slow queries

> This is an experimental handle for the database which has some tables over one hundred thousand lines.
2022-08-29 22:41:31 +08:00
Lost-MSth
12cd187563 Fix my rank
- ditto
2022-08-25 14:57:31 +08:00
Lost-MSth
574d2c9d9f Fix my rank
- Fix a bug that `my rank` doesn't work correctly (There may still be the problem)
2022-08-25 13:40:16 +08:00
Lost-MSth
732947a3f0 Fix some bugs
- Second try to fix a bug about API
- Fix a bug that the `prog boost` shows the incorrect value
- Fix a bug that the rewards can be get repeatedly in World Mode
- Fix a bug that second tube of blood of the world boss won't change
2022-08-11 22:38:26 +08:00
Lost-MSth
27ee147989 Fix two small bugs
- Fix a bug that the level of the character can exceed the max level
- Fix a bug that the response is incorrect when upgrading the characters by `generic core`
2022-08-03 22:00:42 +08:00
Lost-MSth
b38dbf1a55 Fix two small bugs
- Fix a bug that something of the finale challenge cannot be unlocked
- Fix a bug that the users' items will not be zero, which will disturb some purchase operations
2022-08-03 15:44:46 +08:00
Lost-MSth
d852be8029 Fix a bug about course system
- Fix a bug that the hidden courses cannot appear even if their requirements are satisfied
2022-07-30 17:55:01 +08:00
Lost-MSth
4f52df35ce Fix a small bug
- Fix a bug that the clients under v4.0.0 cannot upload the cloud save
2022-07-29 21:31:38 +08:00
Lost-MSth
cbd2198e43 Update issue templates 2022-07-29 21:22:47 +08:00
Lost-MSth
cdf76fb93a Just add something for unlocking songs
#62
2022-07-23 19:03:22 +08:00
Lost-MSth
5fba93524c Add a new feature
- Add support for specifying the songs of which only the `beyond` chart should be served #60
2022-07-22 17:20:13 +08:00
Lost-MSth
93f4ad4999 Fix some bugs
- Fix a bug that `GET` requests without data will report an error in API
- Fix a bug that `aggregate` requests will get an error when the inner function raises an error
- Fix a bug that the charts of a course cannot be the same because of the incorrect primary keys
- Fix a bug that global ranking scores cannot be calculated if there are no chart in the database #61
- The first try to fix #60 (I don't think it can be done so easily.)
2022-07-20 21:59:26 +08:00
Lost-MSth
47f05cdf1e Fix a bug and add a new thing
- Add support for logging Arcaea's errors
- Fix a bug when world maps' data don't have some unnecessary parts the client of iOS may break down
2022-07-16 19:50:07 +08:00
Lost-MSth
dbfed37dda Merge pull request #55 from Lost-MSth/dev
Update to v2.9.1
v2.9.1
2022-07-13 23:06:33 +08:00
Lost-MSth
6801af197f Update to v2.9.1
- Fix a bug that the characters have wrong values
2022-07-13 23:05:28 +08:00
Lost-MSth
210ba99606 Fix an immaterial bug
- Delete a redundant import
2022-07-10 21:52:52 +08:00
Lost-MSth
0705c35be8 Merge pull request #54 from Lost-MSth/master
Update readme.md
2022-07-10 21:48:33 +08:00
Lost-MSth
c9bcbb8ec4 Update README.md 2022-07-10 21:47:43 +08:00
Lost-MSth
ac0071bfd6 Merge pull request #53 from Lost-MSth/dev
Fix a big bug
2022-07-09 23:06:06 +08:00
Lost-MSth
ef8e551261 Fix a big bug
- Fix a bug that the server gets all items as one user's item
2022-07-09 23:05:33 +08:00
Lost-MSth
55ab6c43cb Merge pull request #52 from Lost-MSth/dev
Update to v2.9
v2.9
2022-07-09 22:03:47 +08:00
Lost-MSth
15134173c9 Ready to Update to v2.9
- Add support for finale state data
2022-07-09 22:02:46 +08:00
Lost-MSth
9f41ef0a70 'Small' update
- Add Course Mode
- Add support for downloading additional files
- Add support for `skill_fatalis` (Hikari booms your world.)

- Delete my hair X<

> WHERE IS MY TAIRITSU ?!
> Some other things are not supported now, such as... the feature which is one line above.
2022-07-09 01:15:03 +08:00
Lost-MSth
af3e91b3e8 Code refactoring
- Code refactoring mainly for API
- Delete a useless option in `setting.py`
- Change some constants in Link Play mode
2022-07-06 22:07:00 +08:00
Lost-MSth
9d746eab2d Update score.py
Fix two bugs.
2022-07-04 23:14:23 +08:00
Lost-MSth
6fcca17918 Code refactoring
- Code refactoring
- Fix a bug that the other player will not become the host of the room at once, when the player disconnect in link play.

> Maybe add many unknown bugs. XD
> The song database `arcsong.db` will not used in the future. You can use a tool in `tool` folder to import old data.
2022-07-04 18:36:30 +08:00
Lost-MSth
9de62d3645 Update to v2.8.6 without release
- Code refactoring
- Update the song database
- Fix a bug of the friend system which arose in the last version
- Fix a bug of duplicate calculating finishing states when players finish playing the chart in Link Play.
2022-05-26 18:56:33 +08:00
Lost-MSth
96fbd26342 Update to v2.8.5 v2.8.5 2022-04-28 18:29:26 +08:00
Lost-MSth
aa77a4c903 Update requirements 2022-04-16 18:37:11 +08:00
Lost-MSth
6075bda5d8 Merge pull request #49 from Young-Lord/patch-1
Modify the import of link_play module
2022-04-16 18:35:23 +08:00