aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-11-15 16:50:01 +0000
committerGravatar Joe Banks <[email protected]>2020-11-15 16:50:01 +0000
commitbfeaad1e8e57ff7e118644b8deb7546b15268920 (patch)
treea29fd0a8f3ebc3f8a8bd0c7ca597723d19c5617e
parentPublish to GHCR and remove salt autodeploy (diff)
Fix linting errors
-rw-r--r--metricity/models.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/metricity/models.py b/metricity/models.py
index 52c2feb..172a135 100644
--- a/metricity/models.py
+++ b/metricity/models.py
@@ -83,6 +83,10 @@ class Message(db.Model):
db.ForeignKey("channels.id", ondelete="CASCADE"),
index=True
)
- author_id = db.Column(db.String, db.ForeignKey("users.id", ondelete="CASCADE"), index=True)
+ author_id = db.Column(
+ db.String,
+ db.ForeignKey("users.id", ondelete="CASCADE"),
+ index=True
+ )
created_at = db.Column(db.DateTime, default=datetime.utcnow)
is_deleted = db.Column(db.Boolean, default=False)