Add debug + increase char limits
This commit is contained in:
parent
fc72075161
commit
55adc3213a
@ -147,7 +147,7 @@ class youtubeFollow(db.Model):
|
|||||||
__tablename__ = 'channel'
|
__tablename__ = 'channel'
|
||||||
id = db.Column(db.Integer, primary_key=True)
|
id = db.Column(db.Integer, primary_key=True)
|
||||||
channelId = db.Column(db.String(30), nullable=False)
|
channelId = db.Column(db.String(30), nullable=False)
|
||||||
channelName = db.Column(db.String(60))
|
channelName = db.Column(db.String(100))
|
||||||
followers = db.relationship('User',
|
followers = db.relationship('User',
|
||||||
secondary=channel_association,
|
secondary=channel_association,
|
||||||
back_populates="youtubeFollowed")
|
back_populates="youtubeFollowed")
|
||||||
@ -158,7 +158,7 @@ class youtubeFollow(db.Model):
|
|||||||
class twitterFollow(db.Model):
|
class twitterFollow(db.Model):
|
||||||
__tablename__ = 'twitterAccount'
|
__tablename__ = 'twitterAccount'
|
||||||
id = db.Column(db.Integer, primary_key=True)
|
id = db.Column(db.Integer, primary_key=True)
|
||||||
username = db.Column(db.String(30), nullable=False)
|
username = db.Column(db.String(100), nullable=False)
|
||||||
followers = db.relationship('User',
|
followers = db.relationship('User',
|
||||||
secondary=twitter_association,
|
secondary=twitter_association,
|
||||||
back_populates="twitterFollowed")
|
back_populates="twitterFollowed")
|
||||||
@ -170,8 +170,8 @@ class Post(db.Model):
|
|||||||
id = db.Column(db.Integer, primary_key=True)
|
id = db.Column(db.Integer, primary_key=True)
|
||||||
body = db.Column(db.String(540))
|
body = db.Column(db.String(540))
|
||||||
timestamp = db.Column(db.String(100))
|
timestamp = db.Column(db.String(100))
|
||||||
url = db.Column(db.String(250), unique=True)
|
url = db.Column(db.String(550), unique=True)
|
||||||
username = db.Column(db.String(50))
|
username = db.Column(db.String(100))
|
||||||
user_id = db.Column(db.Integer, db.ForeignKey('user.id'))
|
user_id = db.Column(db.Integer, db.ForeignKey('user.id'))
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
|
@ -259,7 +259,8 @@ def followYoutubeChannel(channelId):
|
|||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
except:
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
flash("Youtube: Couldn't follow {}. Already followed?".format(channelData[0]['name']))
|
flash("Youtube: Couldn't follow {}. Already followed?".format(channelData[0]['name']))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user