wrong validation on hp endpoint
This commit is contained in:
		
							parent
							
								
									5499f1f4df
								
							
						
					
					
						commit
						932f2bdda6
					
				
							
								
								
									
										2
									
								
								app.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								app.py
									
									
									
									
									
								
							@ -86,7 +86,7 @@ class RollHP(Resource):
 | 
				
			|||||||
    @hp.expect(hp_model)
 | 
					    @hp.expect(hp_model)
 | 
				
			||||||
    def post(self):
 | 
					    def post(self):
 | 
				
			||||||
        data = api.payload
 | 
					        data = api.payload
 | 
				
			||||||
        errors = ability_schema.validate(data)
 | 
					        errors = hp_schema.validate(data)
 | 
				
			||||||
        if errors:
 | 
					        if errors:
 | 
				
			||||||
            return errors, 400
 | 
					            return errors, 400
 | 
				
			||||||
        chartype = data.get('chartype')
 | 
					        chartype = data.get('chartype')
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user