16 Commits

Author SHA1 Message Date
uy/sun
9581887994
🎨 调整旧版数据库加载逻辑 (#212) 2023-03-09 17:58:26 +08:00
uy/sun
90816796c7
🚚 修改 nonebot_bison 项目结构 (#211)
* 🎨 修改 nonebot_bison 目录位置

* auto fix by pre-commit hooks

* 🚚 fix frontend build target

* 🚚 use soft link

* Revert "🚚 use soft link"

This reverts commit de21f79d5ae1bd5515b04f42a4138cb25ddf3e62.

* 🚚 modify dockerfile

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: felinae98 <731499577@qq.com>
2023-03-09 17:32:51 +08:00
felinae98
d07657aeed
🗃️ 又切换回 sqlalchemy,但是 2.0 (#206)
* change: 又切换回 sqlalchemy,但是 2.0

* 将 subscribe 表的两个 json 字段设置为 not null

---------

Co-authored-by: hemengyang <hmy0119@gmail.com>
2023-03-03 18:10:12 +08:00
felinae98
0201d5b316
⬆️ 升级至 NoneBug 0.3
* 🚧 第一次尝试 50/82

* 62/82 调整了清除数据库的位置

* 🚧 pytest-mock

* 🚧 fix test_send

* 🚧 intruduce app request

* 🚧 close and remove tinydb after each test

* 🚧 clean ScheduleTimeWeight table

* 🚧 reload http module to test proxy

*  合并 main 的代码

* 🚧 在每次测试结束后关闭browser

* 🧑‍💻 在mcbbsnews渲染异常时添加logger

---------

Co-authored-by: hemengyang <hmy0119@gmail.com>
Co-authored-by: Azide <rukuy@qq.com>
2023-03-03 15:12:25 +08:00
uy/sun
8da8f66fcf
💥 适配最新的 DataStore 插件,并切换模型为 SQLModel (#178)
* 使用 SQLModel

* 处理数据库迁移

* 与之前的模型相匹配

* sqlmodel 和 sqlalchemy 的导入移入测试函数内

并且使用 init_db 且测试前加载插件

* 重命名 alembic_version 表之前先检查是否存在且 version_num 属于插件

* 降级应该是把名称重新命名回去而不是删掉

* 不再设置 arbitrary_types_allowed 为 True
2023-01-30 22:52:11 +08:00
felinae98
f6e392e8db
add dedup for data migration 2022-10-09 21:25:11 +08:00
pre-commit-ci[bot]
1543ba21d2
auto fix by pre-commit hooks 2022-10-09 19:45:56 +08:00
felinae98
ebcf1cc300
fix: handle subscibe dup exception 2022-10-09 19:45:55 +08:00
felinae98
50b46c5f03
fix test 2022-06-06 01:27:25 +08:00
felinae98
9fa97704b0
finish new scheduler 2022-06-06 00:22:18 +08:00
felinae98
331d0f6101
update 2022-06-05 16:45:35 +08:00
felinae98
68baa3b915
add scheduler config 2022-06-01 23:03:46 +08:00
felinae98
47bcffe12e
add migration test 2022-05-06 00:17:17 +08:00
felinae98
beff65c8d3
update 2022-03-31 12:14:49 +08:00
felinae98
cf35432757
update 2022-03-29 22:43:39 +08:00
felinae98
df23648b0f
update 2022-03-24 19:36:54 +08:00