mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	small style changes (#8681)
This commit is contained in:
		| @@ -248,11 +248,11 @@ class Login(LoginView): | |||||||
|         if user is None: |         if user is None: | ||||||
|             return HttpResponse(status=401) |             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): |         if not user_has_valid_totp_device(user): | ||||||
|             return super().post(request, *args, **kwargs) |             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_user_id'] = str(user.id) | ||||||
|         request.session['allauth_2fa_login'] = { |         request.session['allauth_2fa_login'] = { | ||||||
|             'email_verification': app_settings.EMAIL_VERIFICATION, |             'email_verification': app_settings.EMAIL_VERIFICATION, | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								tasks.py
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								tasks.py
									
									
									
									
									
								
							| @@ -1369,7 +1369,7 @@ def frontend_download( | |||||||
|  |  | ||||||
|         if not current.exists(): |         if not current.exists(): | ||||||
|             warning( |             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 |             return False | ||||||
|  |  | ||||||
| @@ -1451,7 +1451,7 @@ Then try continuing by running: invoke frontend-download --file <path-to-downloa | |||||||
|         ).json() |         ).json() | ||||||
|  |  | ||||||
|         if not (qc_run := find_resource(workflow_runs['workflow_runs'], 'name', 'QC')): |         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 |             return | ||||||
|         print( |         print( | ||||||
|             f'Found workflow {qc_run["name"]} (run {qc_run["run_number"]}-{qc_run["run_attempt"]})' |             f'Found workflow {qc_run["name"]} (run {qc_run["run_number"]}-{qc_run["run_attempt"]})' | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user