[twitter] Allow null entry in model for tokens and since_ids

This commit is contained in:
Cathy Hu 2020-07-06 11:12:57 +02:00 committed by acipm
parent cc4bf13388
commit c655c77c07

View file

@ -9,10 +9,10 @@ from ormantic import Integer, ForeignKey, Model, Text
class Twitter(Model): class Twitter(Model):
id: Integer(primary_key=True) = None id: Integer(primary_key=True) = None
hood: ForeignKey(Hood) hood: ForeignKey(Hood)
dms_since_id: Integer() dms_since_id: Integer(allow_null=True) = None
mentions_since_id: Integer() mentions_since_id: Integer(allow_null=True) = None
access_token: Text() access_token: Text(allow_null=True) = None
access_token_secret: Text() access_token_secret: Text(allow_null=True) = None
class Mapping(Mapping): class Mapping(Mapping):
table_name = 'twitterbots' table_name = 'twitterbots'