Skip to content

Commit

Permalink
修复无法加载 (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssttkkl authored Sep 15, 2024
1 parent 3e65a2e commit 660cacd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/nonebot_plugin_pixivbot/data/source/sql/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async def initialize(self):
'json_serializer': json_serializer
}

if conf.detect_sql_dialect == 'sqlite':
if conf.pixiv_sql_dialect == 'sqlite':
# 使用 SQLite 数据库时,如果在写入时遇到 (sqlite3.OperationalError) database is locked 错误。
# 可尝试将 poolclass 设置为 StaticPool,保持有且仅有一个连接。
# 不过这样设置之后,在程序运行期间,你的数据库文件都将被占用。
Expand Down
7 changes: 7 additions & 0 deletions src/tests/test_load.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import pytest
from nonebug import App


@pytest.mark.asyncio
async def test_load(app: App):
pass

0 comments on commit 660cacd

Please sign in to comment.