-
Notifications
You must be signed in to change notification settings - Fork 0
Omar #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Omar #3
Changes from 8 commits
b360ef8
7997998
e2bca72
f48c414
b524919
ff6af7d
9177a33
d7f3abb
ce33a1f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
reviews: | ||
enabled: true | ||
auto_review: true | ||
auto_summarize: true | ||
auto_title: true | ||
auto_title_instructions: "Generate a title based on the changes in the PR" | ||
max_comments: 10 | ||
simple_changes: false | ||
comment_lgtm: false | ||
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,30 @@ | ||||||||||
name: Deploy Flask to Heroku | ||||||||||
|
||||||||||
on: | ||||||||||
push: | ||||||||||
branches: | ||||||||||
- main | ||||||||||
|
||||||||||
jobs: | ||||||||||
deploy: | ||||||||||
runs-on: ubuntu-latest | ||||||||||
|
||||||||||
steps: | ||||||||||
- name: Checkout repository | ||||||||||
uses: actions/checkout@v3 | ||||||||||
|
||||||||||
Comment on lines
+13
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainUpdate Actions Checkout Version Static analysis indicates that using - uses: actions/checkout@v3
+ uses: actions/checkout@v4 🌐 Web query:
💡 Result: The latest version of the GitHub Action Key Details:
Summary:
Citations:
Action Required: Update GitHub Checkout Action to v4 The current workflow uses
📝 Committable suggestion
Suggested change
🧰 Tools🪛 actionlint (1.7.4)14-14: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue (action) |
||||||||||
- name: Set up Python | ||||||||||
uses: actions/setup-python@v4 | ||||||||||
with: | ||||||||||
python-version: "3.9" | ||||||||||
|
||||||||||
- name: Install dependencies | ||||||||||
run: | | ||||||||||
pip install -r requirements.txt | ||||||||||
|
||||||||||
- name: Deploy to Heroku | ||||||||||
run: | | ||||||||||
heroku login | ||||||||||
git push heroku main | ||||||||||
env: | ||||||||||
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
venv | ||
__pycache__ | ||
app/__pycache__ | ||
.github/workflow/*.yml | ||
Bootstrap Studio/* |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
{ | ||
"tasks": [ | ||
{ | ||
"type": "cppbuild", | ||
"label": "C/C++: gcc.exe build active file", | ||
"command": "C:\\msys64\\ucrt64\\bin\\gcc.exe", | ||
"args": [ | ||
"-fdiagnostics-color=always", | ||
"-g", | ||
"${file}", | ||
"-o", | ||
"${fileDirname}\\${fileBasenameNoExtension}.exe" | ||
], | ||
"options": { | ||
"cwd": "${fileDirname}" | ||
}, | ||
"problemMatcher": [ | ||
"$gcc" | ||
], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"detail": "Task generated by Debugger." | ||
} | ||
], | ||
"version": "2.0.0" | ||
} | ||
"tasks": [ | ||
{ | ||
"type": "cppbuild", | ||
"label": "C/C++: gcc.exe build active file", | ||
"command": "C:\\msys64\\ucrt64\\bin\\gcc.exe", | ||
"args": [ | ||
"-fdiagnostics-color=always", | ||
"-g", | ||
"${file}", | ||
"-o", | ||
"${fileDirname}\\${fileBasenameNoExtension}.exe" | ||
], | ||
"options": { | ||
"cwd": "${fileDirname}" | ||
}, | ||
"problemMatcher": ["$gcc"], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"detail": "Task generated by Debugger." | ||
} | ||
], | ||
"yaml.customTags": [ | ||
"!Scalar-example scalar", | ||
"!Seq-example sequence", | ||
"!Mapping-example mapping" | ||
], | ||
"version": "2.0.0" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ def create_app(config_class='config.DevelopmentConfig'): | |
configure_logging(app) | ||
# Enable the toolbar | ||
toolbar = DebugToolbarExtension(app) | ||
|
||
login_manager.login_view = 'auth/Login' # Redirect to login page if not logged in | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainVerify that the auth blueprint is properly registered The login view path 'auth/Login' seems unusual. Flask blueprints typically use dot notation (e.g., 'auth.login'). Also, according to the AI summary, the auth blueprint registration may have been commented out in the blueprints file, which would make this redirect fail. 🏁 Script executed: #!/bin/bash
# Check if the auth blueprint is registered and if the Login route exists
echo "Checking blueprint registration:"
cat App/blueprints/__init__.py
echo -e "\nChecking for Login route in auth blueprint:"
find App -name "*.py" -exec grep -l "def Login" {} \;
# Also check for route definitions
find App -name "*.py" -exec grep -l "@.*route.*['\"]Login['\"]" {} \; Length of output: 714 Action Required: Correct Blueprint Registration and Route Naming
Please address these issues by ensuring that:
|
||
|
||
|
||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -6,7 +6,7 @@ | |||||||||||||||||
@login_manager.user_loader | ||||||||||||||||||
@user_bp.route('') | ||||||||||||||||||
def home(): | ||||||||||||||||||
return render_template('auth/login.html') | ||||||||||||||||||
return render_template('base/base.html') | ||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Incorrect use of @login_manager.user_loader decorator The -@login_manager.user_loader
@user_bp.route('')
def home():
return render_template('base/base.html') 📝 Committable suggestion
Suggested change
|
||||||||||||||||||
|
||||||||||||||||||
@login_manager.user_loader | ||||||||||||||||||
@user_bp.route("/testing") | ||||||||||||||||||
|
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
.bs-icon { | ||
--bs-icon-size: .75rem; | ||
display: flex; | ||
flex-shrink: 0; | ||
justify-content: center; | ||
align-items: center; | ||
font-size: var(--bs-icon-size); | ||
width: calc(var(--bs-icon-size) * 2); | ||
height: calc(var(--bs-icon-size) * 2); | ||
color: var(--bs-primary); | ||
} | ||
|
||
.bs-icon-xs { | ||
--bs-icon-size: 1rem; | ||
width: calc(var(--bs-icon-size) * 1.5); | ||
height: calc(var(--bs-icon-size) * 1.5); | ||
} | ||
|
||
.bs-icon-sm { | ||
--bs-icon-size: 1rem; | ||
} | ||
|
||
.bs-icon-md { | ||
--bs-icon-size: 1.5rem; | ||
} | ||
|
||
.bs-icon-lg { | ||
--bs-icon-size: 2rem; | ||
} | ||
|
||
.bs-icon-xl { | ||
--bs-icon-size: 2.5rem; | ||
} | ||
|
||
.bs-icon.bs-icon-primary { | ||
color: var(--bs-white); | ||
background: var(--bs-primary); | ||
} | ||
|
||
.bs-icon.bs-icon-primary-light { | ||
color: var(--bs-primary); | ||
background: rgba(var(--bs-primary-rgb), .2); | ||
} | ||
|
||
.bs-icon.bs-icon-semi-white { | ||
color: var(--bs-primary); | ||
background: rgba(255, 255, 255, .5); | ||
} | ||
|
||
.bs-icon.bs-icon-rounded { | ||
border-radius: .5rem; | ||
} | ||
|
||
.bs-icon.bs-icon-circle { | ||
border-radius: 50%; | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,29 @@ | |
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="stylesheet" href="../static/css/login.css" /> | ||
<link | ||
rel="icon" | ||
type="image/x-icon" | ||
href="{{ url_for('static', filename='img/favicon.ico') }}" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" | ||
/> | ||
<script | ||
defer | ||
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" | ||
></script> | ||
<!-- --> | ||
|
||
<link | ||
rel="stylesheet" | ||
href="{{ url_for('static', filename='css/Footer-Multi-Column-icons.css') }}" | ||
/> | ||
<link | ||
rel="stylesheet" | ||
href="{{ url_for('static', filename='bootstrap/css/bootstrap.min.css') }}" | ||
/> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
|
@@ -16,5 +39,7 @@ | |
</main> | ||
|
||
{% include 'base/footer.html' %} | ||
<!-- --> | ||
{% block Js %} {% endblock %} | ||
</body> | ||
</html> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Configuration Schema Violation:
auto_review
The CodeRabbit configuration schema expects the
auto_review
property to be an object, but a boolean (true
) is provided here. This mismatch leads to a validation error ("Expected object, received boolean atreviews.auto_review
").For example, modify the configuration as follows:
Please update this section to match the schema.
📝 Committable suggestion