File tree Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
/relatorios
2
2
app /__pycache__
3
- app /logs
3
+ app /logs
4
+ * .docx
File renamed without changes.
Original file line number Diff line number Diff line change 8
8
@app .route ('/' )
9
9
def index ():
10
10
app .logger .info ('Acesso à página inicial' )
11
- return render_template ('index.html' )
11
+
12
+ # Teste se já está logado
13
+ isLogin = True
14
+ # teste com condição if ternario
15
+ return render_template ('index.html' if isLogin else 'login.html' )
12
16
13
17
@app .route ('/login' )
14
18
def login ():
19
+ app .logger .info ('Acesso à página Login' )
15
20
return render_template ('login.html' )
16
21
17
22
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ RUN apt-get update && apt-get install -y \
12
12
npm \
13
13
&& rm -rf /var/lib/apt/lists/*
14
14
COPY requirements.txt requirements.txt
15
+
15
16
RUN pip install -r requirements.txt
16
17
17
18
# Instalar as dependências do npm (incluindo o Vue.js)
You can’t perform that action at this time.
0 commit comments