From 3bc43a51e9890f7dac17f3bf0de5fb99ba21f166 Mon Sep 17 00:00:00 2001 From: maike Date: Sun, 12 Jul 2020 16:42:49 +0200 Subject: [PATCH] [email] Only one email bot per hood --- kibicara/platforms/email/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kibicara/platforms/email/model.py b/kibicara/platforms/email/model.py index 547f305..620226c 100644 --- a/kibicara/platforms/email/model.py +++ b/kibicara/platforms/email/model.py @@ -21,7 +21,7 @@ class Email(Model): """ This table is used to track the hood ID. It also stores the token secret. """ id: Integer(primary_key=True) = None - hood: ForeignKey(Hood) # this is supposed to be unique - dl6tom/ormantic/pulls/1 + hood: ForeignKey(Hood, unique=True) secret: Text() class Mapping(Mapping):