mirror of
https://github.com/A-Minos/nonebot-plugin-tetris-stats.git
synced 2026-03-05 05:36:54 +08:00
🚨 ruff auto fix
This commit is contained in:
@@ -37,14 +37,10 @@ def migrate_old_data(connection: Connection) -> None:
|
|||||||
Bind = Base.classes.nonebot_plugin_tetris_stats_bind # noqa: N806
|
Bind = Base.classes.nonebot_plugin_tetris_stats_bind # noqa: N806
|
||||||
|
|
||||||
def non_empty(obj: str) -> bool:
|
def non_empty(obj: str) -> bool:
|
||||||
if obj != '' and not obj.isspace():
|
return bool(obj != '' and not obj.isspace())
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
def is_int(obj: int | str) -> bool:
|
def is_int(obj: int | str) -> bool:
|
||||||
if isinstance(obj, int) or obj.isdigit():
|
return bool(isinstance(obj, int) or obj.isdigit())
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
bind_list = [
|
bind_list = [
|
||||||
Bind(chat_platform='OneBot V11', chat_account=int(row.QQ), game_platform='IO', game_account=row.USER)
|
Bind(chat_platform='OneBot V11', chat_account=int(row.QQ), game_platform='IO', game_account=row.USER)
|
||||||
|
|||||||
Reference in New Issue
Block a user