From ebcf1dc836335b6fb78131b34901b67c6586597d Mon Sep 17 00:00:00 2001 From: Kfir Hadas Date: Thu, 25 May 2017 09:08:18 +0300 Subject: [PATCH] PEP8 --- nyaa/models.py | 4 ++-- nyaa/routes.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/nyaa/models.py b/nyaa/models.py index d204c5c..8b27679 100755 --- a/nyaa/models.py +++ b/nyaa/models.py @@ -99,8 +99,8 @@ class Torrent(db.Model): cascade="all, delete-orphan", back_populates='torrent') stats = db.relationship('Statistic', uselist=False, cascade="all, delete-orphan", back_populates='torrent', lazy='joined') - trackers = db.relationship('TorrentTrackers', uselist=True, - cascade="all, delete-orphan", lazy='joined', order_by='TorrentTrackers.order') + trackers = db.relationship('TorrentTrackers', uselist=True, cascade="all, delete-orphan", + lazy='joined', order_by='TorrentTrackers.order') comments = db.relationship('Comment', uselist=True, cascade="all, delete-orphan") diff --git a/nyaa/routes.py b/nyaa/routes.py index ef72010..952f19e 100644 --- a/nyaa/routes.py +++ b/nyaa/routes.py @@ -213,7 +213,6 @@ def home(rss): 'per_page': results_per_page } - if flask.g.user: query_args['logged_in_user'] = flask.g.user if flask.g.user.is_moderator: # God mode