From 2086ee284928e20677ad46c30e65dd50a919f7a8 Mon Sep 17 00:00:00 2001 From: Luna Date: Tue, 23 Jul 2019 15:46:00 -0300 Subject: [PATCH] channels: fix inferred constraint name --- litecord/blueprints/channels.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litecord/blueprints/channels.py b/litecord/blueprints/channels.py index 1dfcee9..16de99b 100644 --- a/litecord/blueprints/channels.py +++ b/litecord/blueprints/channels.py @@ -284,7 +284,7 @@ async def _process_overwrites(channel_id: int, overwrites: list): target_user = overwrite['id'] if target_type == 0 else None col_name = 'target_user' if target_type == 0 else 'target_role' - constraint_name = f'channel_overwrites_target_{col_name}' + constraint_name = f'channel_overwrites_{col_name}_uniq' await app.db.execute( f"""