For example the history in the webui doesn't work because of it. It throws internal server error:
ERROR:arm.ui:Exception on /history [GET]
Traceback (most recent call last):
File "/opt/arm/.venv/arm/lib/python3.9/site-packages/flask/app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "/opt/arm/.venv/arm/lib/python3.9/site-packages/flask/app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/opt/arm/.venv/arm/lib/python3.9/site-packages/flask_cors/extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/opt/arm/.venv/arm/lib/python3.9/site-packages/flask/app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "/opt/arm/.venv/arm/lib/python3.9/site-packages/flask/app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/opt/arm/.venv/arm/lib/python3.9/site-packages/flask_login/utils.py", line 290, in decorated_view
return current_app.ensure_sync(func)(*args, **kwargs)
File "/opt/arm/arm/../arm/ui/routes.py", line 493, in history
jobs = Job.query.order_by(Job.start_time.desc()).paginate(page, 100, False)
TypeError: paginate() takes 1 positional argument but 4 were given
model.py:228 and model.py:493 need to be changed to this respectively:
line 228
jobs = Job.query.order_by(db.desc(Job.job_id)).paginate(page=page, per_page=100, error_out=False)
line 493
jobs = Job.query.order_by(Job.start_time.desc()).paginate(page=page, per_page=100, error_out=False)
I've changed this on my install and now the history is working again.
For example the history in the webui doesn't work because of it. It throws internal server error:
model.py:228andmodel.py:493need to be changed to this respectively:line 228
line 493
I've changed this on my install and now the history is working again.