fix: adjust api of get_diet_records
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		@@ -24,7 +24,7 @@ def get_diet_records(query_data):
 | 
				
			|||||||
                                           current_date=current_date)
 | 
					                                           current_date=current_date)
 | 
				
			||||||
    except Exception as e:
 | 
					    except Exception as e:
 | 
				
			||||||
        raise DietRecordNotFound(extra_data={'error_docs': str(e)})
 | 
					        raise DietRecordNotFound(extra_data={'error_docs': str(e)})
 | 
				
			||||||
    return {'records': results}
 | 
					    return results
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@diet.get('/<diet_id>')
 | 
					@diet.get('/<diet_id>')
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -34,4 +34,6 @@ class DietRecordOut(Schema):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class DietRecordsOut(Schema):
 | 
					class DietRecordsOut(Schema):
 | 
				
			||||||
    records = fields.List(fields.Nested(DietRecordOut))
 | 
					    records = fields.List(fields.Nested(DietRecordOut))
 | 
				
			||||||
 | 
					    previous_date = fields.String()
 | 
				
			||||||
 | 
					    next_date = fields.String()
 | 
				
			||||||
		Reference in New Issue
	
	Block a user