Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/relatorios
app/__pycache__
app/logs
app/logs
*.docx
File renamed without changes.
7 changes: 6 additions & 1 deletion app/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@
@app.route('/')
def index():
app.logger.info('Acesso à página inicial')
return render_template('index.html')

# Teste se já está logado
isLogin = True
# teste com condição if ternario
return render_template('index.html' if isLogin else 'login.html')

@app.route('/login')
def login():
app.logger.info('Acesso à página Login')
return render_template('login.html')


Expand Down
1 change: 1 addition & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ RUN apt-get update && apt-get install -y \
npm \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt requirements.txt

RUN pip install -r requirements.txt

# Instalar as dependências do npm (incluindo o Vue.js)
Expand Down