Updated: Removed LIMIT for all refuel records, fixed fuel consumption calculation on dashboard
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build and Deploy Zola Website / build_and_deploy (push) Successful in 12s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build and Deploy Zola Website / build_and_deploy (push) Successful in 12s
				
			This commit is contained in:
		@@ -12,7 +12,7 @@ class DashboardController extends Controller {
 | 
			
		||||
            "mileage" => [],
 | 
			
		||||
            "liters" => []
 | 
			
		||||
        ];
 | 
			
		||||
        $raw_data = $default_car ? $refuel->latest_data($default_car['id'], 5) : [];
 | 
			
		||||
        $raw_data = $default_car ? $refuel->latest_data($default_car['id'], 0) : [];
 | 
			
		||||
        foreach($raw_data as $one) {
 | 
			
		||||
            array_push($data['date'], date('d. m.', strtotime($one['created_at'])));
 | 
			
		||||
            array_push($data['price'], $one['price_per_liter']);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user