prevent triggering foreign key constraints in import
This commit is contained in:
parent
0093c92a7e
commit
7f70c2afc8
1 changed files with 2 additions and 0 deletions
|
@ -121,6 +121,8 @@ You may want to `{ctx.clean_prefix}nomen export` first"""
|
|||
}
|
||||
|
||||
notifications = self.bot.get_cog("Notifications")
|
||||
await ctx.bot.db.execute("INSERT OR IGNORE INTO users (user_id) VALUES(?)", (ctx.author.id,))
|
||||
await ctx.bot.db.commit()
|
||||
|
||||
try:
|
||||
await self.import_json(ctx, data)
|
||||
|
|
Loading…
Reference in a new issue