From c655c77c07adca7738af90900baf2ed7284235ad Mon Sep 17 00:00:00 2001 From: Cathy Hu <cathy.hu@fau.de> Date: Mon, 6 Jul 2020 11:12:57 +0200 Subject: [PATCH] [twitter] Allow null entry in model for tokens and since_ids --- kibicara/platforms/twitter/model.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kibicara/platforms/twitter/model.py b/kibicara/platforms/twitter/model.py index 772b16e..e816424 100644 --- a/kibicara/platforms/twitter/model.py +++ b/kibicara/platforms/twitter/model.py @@ -9,10 +9,10 @@ from ormantic import Integer, ForeignKey, Model, Text class Twitter(Model): id: Integer(primary_key=True) = None hood: ForeignKey(Hood) - dms_since_id: Integer() - mentions_since_id: Integer() - access_token: Text() - access_token_secret: Text() + dms_since_id: Integer(allow_null=True) = None + mentions_since_id: Integer(allow_null=True) = None + access_token: Text(allow_null=True) = None + access_token_secret: Text(allow_null=True) = None class Mapping(Mapping): table_name = 'twitterbots'