Decode the image so it can be re-encoded
#sigh
This commit is contained in:
		
							parent
							
								
									5a6759adae
								
							
						
					
					
						commit
						e120f7a691
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		
							
								
								
									
										3
									
								
								vendor/regidesk/regidesk/views.py
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								vendor/regidesk/regidesk/views.py
									
										
									
									
										vendored
									
									
								
							|  | @ -240,7 +240,8 @@ def send_boarding_pass(bpass, user): | ||||||
|     msg.mixed_subtype="related" |     msg.mixed_subtype="related" | ||||||
|     if bpass.html_body: |     if bpass.html_body: | ||||||
|         msg.attach_alternative(bpass.html_body, "text/html") |         msg.attach_alternative(bpass.html_body, "text/html") | ||||||
|         msg.attach(filename="qrcode.png", content=user.checkin.qrcode, mimetype="image/png") |         qrcode = base64.b64decode(user.checkin.qrcode) | ||||||
|  |         msg.attach(filename="qrcode.png", content=qrcode, mimetype="image/png") | ||||||
| 
 | 
 | ||||||
|     msg.send() |     msg.send() | ||||||
|     bpass.sent = datetime.now() |     bpass.sent = datetime.now() | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 James Polley
						James Polley