Commit 2b53fe9b84f8d7da8b8a1fb0615ceb4333cab806

Authored by Carlos Vieira
1 parent ae97e8dd
Exists in master

Utiliza env PROFILE no run

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/barrabrasil.py
... ... @@ -47,7 +47,7 @@ def vlibras_teste():
47 47  
48 48 @app.route('/barra.js')
49 49 def barra():
50   - with app.open_resource('templates/'+os.getenv('PROFILE', default)+'/barra-brasil.js') as f:
  50 + with app.open_resource('templates/'+os.getenv('PROFILE', 'default')+'/barra-brasil.js') as f:
51 51 conteudo = f.read().decode('utf-8')
52 52 etag = hashlib.sha1(conteudo.encode('utf-8')).hexdigest()
53 53 accept_encoding = request.headers.get('Accept-Encoding', '')
... ...