aboutsummaryrefslogtreecommitdiff
path: root/src/web/models
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2018-02-02 11:50:03 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2018-02-02 11:50:03 +0100
commit5a5303c5c56eb8bd7f6dd233add021a1ffc85882 (patch)
treeb2d2c261c79b7edfe81683517debf3b146c73aaa /src/web/models
parentUpdated some dependencies. (diff)
downloadnewspipe-5a5303c5c56eb8bd7f6dd233add021a1ffc85882.tar.gz
newspipe-5a5303c5c56eb8bd7f6dd233add021a1ffc85882.tar.bz2
newspipe-5a5303c5c56eb8bd7f6dd233add021a1ffc85882.zip
The link of a feed can not be None.
Diffstat (limited to 'src/web/models')
-rw-r--r--src/web/models/feed.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/models/feed.py b/src/web/models/feed.py
index 2c26a71f..13210713 100644
--- a/src/web/models/feed.py
+++ b/src/web/models/feed.py
@@ -41,7 +41,7 @@ class Feed(db.Model, RightMixin):
id = db.Column(db.Integer(), primary_key=True)
title = db.Column(db.String(), default="")
description = db.Column(db.String(), default="FR")
- link = db.Column(db.String())
+ link = db.Column(db.String(), nullable=False)
site_link = db.Column(db.String(), default="")
enabled = db.Column(db.Boolean(), default=True)
created_date = db.Column(db.DateTime(), default=datetime.utcnow)
bgstack15