Skip to content
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

Small style fixes #8681

Merged
merged 2 commits into from
Dec 16, 2024
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
4 changes: 2 additions & 2 deletions src/backend/InvenTree/users/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,11 @@ def post(self, request, *args, **kwargs):
if user is None:
return HttpResponse(status=401)

# Check if user has mfa set up
# Check if user has mfa set up
if not user_has_valid_totp_device(user):
return super().post(request, *args, **kwargs)

# Stage login and redirect to 2fa
# Stage login and redirect to 2fa
request.session['allauth_2fa_user_id'] = str(user.id)
request.session['allauth_2fa_login'] = {
'email_verification': app_settings.EMAIL_VERIFICATION,
Expand Down
4 changes: 2 additions & 2 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1369,7 +1369,7 @@ def check_already_current(tag=None, sha=None):

if not current.exists():
warning(
f'Current frontend information for {ref} is not available - this is expected in some cases'
f'Current frontend information for {ref} is not available in {current!s} - this is expected in some cases'
)
return False

Expand Down Expand Up @@ -1451,7 +1451,7 @@ def check_already_current(tag=None, sha=None):
).json()

if not (qc_run := find_resource(workflow_runs['workflow_runs'], 'name', 'QC')):
error('ERROR: Cannot find any workflow runs for current SHA')
error(f'ERROR: Cannot find any workflow runs for current SHA {ref}')
return
print(
f'Found workflow {qc_run["name"]} (run {qc_run["run_number"]}-{qc_run["run_attempt"]})'
Expand Down
Loading