diff --git a/app/models/appci.py b/app/models/appci.py index 8f940a4..3aece25 100644 --- a/app/models/appci.py +++ b/app/models/appci.py @@ -55,7 +55,7 @@ class AppCIBranch(db.Model): apps = App.query.filter_by(ci_enabled=True).all() most_recent_tests = AppCIResult.query \ .filter_by(branch = self) \ - .order_by('date desc') \ + .order_by(AppCIResult.date.desc()) \ .all() for app in apps: diff --git a/app/models/applists.py b/app/models/applists.py index d6cb934..6a12ff6 100644 --- a/app/models/applists.py +++ b/app/models/applists.py @@ -137,7 +137,7 @@ class App(db.Model): most_recent_test = AppCIResult.query \ .filter_by(branch = branch) \ .filter_by(app = self) \ - .order_by('date desc') \ + .order_by(AppCIResult.date.desc()) \ .first() if most_recent_test: yield most_recent_test diff --git a/requirements.txt b/requirements.txt index 7c33dfa..45288a6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,16 +1,19 @@ -certifi==2017.11.5 -chardet==3.0.4 -click==6.7 -Flask==0.12.2 +Click==7.0 +Flask==1.0.2 +Flask-SQLAlchemy==2.4.0 Flask-Script==2.0.6 -Flask-SQLAlchemy==2.3.2 -idna==2.6 -itsdangerous==0.24 -Jinja2==2.10 -MarkupSafe==1.0 -python-dateutil==2.6.1 -requests==2.18.4 -six==1.11.0 -SQLAlchemy==1.1.15 -urllib3==1.22 -Werkzeug==0.13 +Jinja2==2.10.1 +MarkupSafe==1.1.1 +SQLAlchemy==1.3.3 +Werkzeug==0.15.2 +certifi==2019.3.9 +chardet==3.0.4 +feedgen==0.7.0 +gunicorn==19.7.1 +idna==2.8 +itsdangerous==1.1.0 +lxml==4.2.1 +python-dateutil==2.8.0 +requests==2.21.0 +six==1.12.0 +urllib3==1.25.2