mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 09:19:59 +00:00
fix mysql error and bad colors in css
This commit is contained in:
parent
2e6e924247
commit
4091cba837
|
@ -74,6 +74,8 @@ def search_elastic(term='', user=None, sort='id', order='desc',
|
|||
rss=False, admin=False, logged_in_user=None,
|
||||
per_page=75, max_search_results=1000):
|
||||
# This function can easily be memcached now
|
||||
if page > 4294967295:
|
||||
flask.abort(404)
|
||||
|
||||
es_client = Elasticsearch()
|
||||
|
||||
|
@ -263,6 +265,9 @@ class QueryPairCaller(object):
|
|||
def search_db(term='', user=None, sort='id', order='desc', category='0_0',
|
||||
quality_filter='0', page=1, rss=False, admin=False,
|
||||
logged_in_user=None, per_page=75):
|
||||
if page > 4294967295:
|
||||
flask.abort(404)
|
||||
|
||||
sort_keys = {
|
||||
'id': models.Torrent.id,
|
||||
'size': models.Torrent.filesize,
|
||||
|
|
|
@ -438,8 +438,8 @@ body.dark .table-bordered > tbody > tr > td {
|
|||
|
||||
body.dark table.torrent-list tbody .comments {
|
||||
border-color: #212121;
|
||||
color: #d6d6d6;
|
||||
background-color: #4c4c4c;
|
||||
color: #247fcc;
|
||||
background-color: #2f2c2c;
|
||||
}
|
||||
|
||||
/* trusted */
|
||||
|
|
Loading…
Reference in a new issue