updated argos to 1.1.2, fix argos translate init and templates.html render

This commit is contained in:
Vincent Emonet 2021-02-09 14:12:32 +01:00
parent 90d743796b
commit a0760eb23f
4 changed files with 4 additions and 4 deletions

View file

@ -68,7 +68,7 @@ def create_app(char_limit=-1, req_limit=-1, batch_limit=-1, ga_id=None, debug=Fa
@app.route("/")
def index():
return render_template(resource_filename('app', 'templates/index.html'), gaId=ga_id, frontendTimeout=frontend_timeout)
return render_template('index.html', gaId=ga_id, frontendTimeout=frontend_timeout)
@app.route("/languages")
def langs():

View file

@ -7,7 +7,7 @@ def boot():
check_and_install_models()
def check_and_install_models(force=False):
if len(package.get_installed_packages()) == 0 or force:
if len(package.get_installed_packages()) < 2 or force:
# Update package definitions from remote
print("Updating language models")
package.update_package_index()