Skip to content

Commit afbe85a

Browse files
fix to chart
1 parent a937be2 commit afbe85a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/oauth2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,5 @@ def authorize_cookie(**kwargs):
7171
token_type, jwt_token = auth_token.split(' ')
7272
verify_access_token(jwt_token, HTTPException(status_code=status.HTTP_403_FORBIDDEN, detail="Invalid Credentials"))
7373
return router(**kwargs)
74-
return RedirectResponse(app.ui_router.url_path_for('signin'))
74+
# return RedirectResponse(app.ui_router.url_path_for('signin'))
7575
return authorize_cookie

src/routers/ui_routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
@router.get("/", status_code=status.HTTP_200_OK)
2727
@oauth2.auth_required
28-
async def home(request: Request, response_model=HTMLResponse, db: Session = Depends(get_db)):
28+
async def home(request: Request, response_model=HTMLResponse):
2929
return TEMPLATES.TemplateResponse("home/index.html", {"request" : request})
3030

3131

src/templates/home/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ <h6 class="text-dark text-sm font-weight-bold mb-0">New order #9583120</h6>
635635
<!-- Specific JS goes HERE -->
636636
{% block javascripts %}
637637

638-
<!-- <script src="{{ url_for('static', path='js/plugins/chartjs.min.js') }}"></script> -->
638+
<script src="{{ url_for('static', path='js/plugins/chartjs.min.js') }}"></script>
639639
<script>
640640
var ctx = document.getElementById("chart-bars").getContext("2d");
641641

0 commit comments

Comments
 (0)