283375 / arcaea-offline Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
原本的数据库对象,包括表架构(抄来的)、数据库类 arcaea_offline.database.Database
,都是赶工出来的,架构很烂。
目前的设想是,数据库结构更改:
CREATE DATABASE songs (id, title, artist, ...) -- 从 songlist 提取,包含标题、曲师等信息
CREATE DATABASE charts_info (song_id, rating_class, constant, ...) -- 谱面定数等计算 PTT 用信息
CREATE VIEW charts (song_id, rating_class, ...) -- 上面两张表的合并
CREATE DATABASE score (id AUTOINCREMENT, score NOT NULL, time, pure, far, lost, ...) -- 存储成绩,除必要的分数外其他项可为 NULL
CREATE VIEW calculated (id, score, pure, far, lost, ..., potential, shiny_pure, ...) -- 每个成绩经过计算得到的单曲 PTT 等
CREATE DATABASE r30 (*calculated) -- r30 队列,按 score.time 刷新
CREATE VIEW bests (*calculated) -- 从 calculated 中自动计算
CREATE VIEW final_potential (ptt, b30, r10) -- 最后计算得出的最终 PTT
同时,不再提供单例 Database 类,改用 get_conn() 获取数据库对象,或者用 SQLAlchemy/peewee 进行数据库操作?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.