1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 14:00:00 +00:00

fix mysql error and bad colors in css

This commit is contained in:
nyaadev 2017-09-19 01:32:45 +02:00
parent 2e6e924247
commit 4091cba837
3 changed files with 8 additions and 3 deletions

View file

@ -74,6 +74,8 @@ def search_elastic(term='', user=None, sort='id', order='desc',
rss=False, admin=False, logged_in_user=None, rss=False, admin=False, logged_in_user=None,
per_page=75, max_search_results=1000): per_page=75, max_search_results=1000):
# This function can easily be memcached now # This function can easily be memcached now
if page > 4294967295:
flask.abort(404)
es_client = Elasticsearch() es_client = Elasticsearch()
@ -263,6 +265,9 @@ class QueryPairCaller(object):
def search_db(term='', user=None, sort='id', order='desc', category='0_0', def search_db(term='', user=None, sort='id', order='desc', category='0_0',
quality_filter='0', page=1, rss=False, admin=False, quality_filter='0', page=1, rss=False, admin=False,
logged_in_user=None, per_page=75): logged_in_user=None, per_page=75):
if page > 4294967295:
flask.abort(404)
sort_keys = { sort_keys = {
'id': models.Torrent.id, 'id': models.Torrent.id,
'size': models.Torrent.filesize, 'size': models.Torrent.filesize,

View file

@ -438,8 +438,8 @@ body.dark .table-bordered > tbody > tr > td {
body.dark table.torrent-list tbody .comments { body.dark table.torrent-list tbody .comments {
border-color: #212121; border-color: #212121;
color: #d6d6d6; color: #247fcc;
background-color: #4c4c4c; background-color: #2f2c2c;
} }
/* trusted */ /* trusted */