Fix SQLAlchemy version + fix ygg page again + fix env creation

This commit is contained in:
Michel Roux 2020-01-29 20:35:42 +01:00
parent 942f9e96e8
commit f4724ba1a2
3 changed files with 5 additions and 4 deletions

View File

@ -1,9 +1,9 @@
FLASK_APP=app.py
FLASK_ENV=development
FLASK_PORT=5000
MYSQL_USER=root
MYSQL_PASSWORD=root
MYSQL_DATABASE=www
MYSQL_USER=nyaa
MYSQL_PASSWORD=nyaa
MYSQL_DATABASE=nyaa
MYSQL_SERVER=db
ADMIN_USERNAME=admin
ADMIN_PASSWORD=secret

View File

@ -371,7 +371,7 @@ class YggTorrent(Connector):
sort_type = 'size'
if self.return_type is ConnectorReturn.HISTORY:
sort_type = 'publish_date'
sort_page = '&page=%s' % self.page * 50 if self.page > 1 else ''
sort_page = '&page=%s' % (self.page * 50) if self.page > 1 else ''
return '%s/engine/search?name=%s&category=2145&sub_category=%s&do=search&order=desc&sort=%s%s' % (
self.base_url, self.query, self.category, sort_type, sort_page

View File

@ -1,5 +1,6 @@
Flask==1.0.2
Flask-SQLAlchemy==2.1
SQLAlchemy==1.2.18
Flask-HTTPAuth==3.2.4
Flask-WTF===0.14.2
PyMySQL==0.9.3