Код:
cur.execute(f"""CREATE TABLE IF NOT EXISTS {ds_name, }(
user_num INTEGER PRIMARY KEY AUTOINCREMENT,
user TEXT,
wcount INTEGER,
w1_id TEXT,
w1_reason TEXT,
w2_id TEXT,
w2_reason TEXT,
w3_id TEXT,
w3_reason TEXT);
""", (ds_name, ))
conn.commit()
Полная ошибка:
Ignoring exception in command warn:
Traceback (most recent call last):
File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.9/site-packages/disnake/ext/commands/core.py", line 172, in wrapped
ret = await coro(*args, **kwargs)
File "<string>", line 33, in warn
sqlite3.OperationalError: near "(": syntax error
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.9/site-packages/disnake/ext/commands/bot_base.py", line 578, in invoke
await ctx.command.invoke(ctx)
File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.9/site-packages/disnake/ext/commands/core.py", line 914, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.9/site-packages/disnake/ext/commands/core.py", line 181, in wrapped
raise CommandInvokeError(exc) from exc
disnake.ext.commands.errors.CommandInvokeError: Command raised an exception: OperationalError: near "(": syntax error