mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 19:49:59 +00:00
commit
5a19dae649
|
@ -99,8 +99,8 @@ class Torrent(db.Model):
|
||||||
cascade="all, delete-orphan", back_populates='torrent')
|
cascade="all, delete-orphan", back_populates='torrent')
|
||||||
stats = db.relationship('Statistic', uselist=False,
|
stats = db.relationship('Statistic', uselist=False,
|
||||||
cascade="all, delete-orphan", back_populates='torrent', lazy='joined')
|
cascade="all, delete-orphan", back_populates='torrent', lazy='joined')
|
||||||
trackers = db.relationship('TorrentTrackers', uselist=True,
|
trackers = db.relationship('TorrentTrackers', uselist=True, cascade="all, delete-orphan",
|
||||||
cascade="all, delete-orphan", lazy='joined', order_by='TorrentTrackers.order')
|
lazy='joined', order_by='TorrentTrackers.order')
|
||||||
comments = db.relationship('Comment', uselist=True,
|
comments = db.relationship('Comment', uselist=True,
|
||||||
cascade="all, delete-orphan")
|
cascade="all, delete-orphan")
|
||||||
|
|
||||||
|
|
|
@ -213,7 +213,6 @@ def home(rss):
|
||||||
'per_page': results_per_page
|
'per_page': results_per_page
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if flask.g.user:
|
if flask.g.user:
|
||||||
query_args['logged_in_user'] = flask.g.user
|
query_args['logged_in_user'] = flask.g.user
|
||||||
if flask.g.user.is_moderator: # God mode
|
if flask.g.user.is_moderator: # God mode
|
||||||
|
|
Loading…
Reference in a new issue