Explorar el Código

merged with master

= hace 4 años
padre
commit
da799e28aa
Se han modificado 1 ficheros con 7 adiciones y 4 borrados
  1. 7 4
      app/Models/Pro.php

+ 7 - 4
app/Models/Pro.php

@@ -340,6 +340,7 @@ class Pro extends Model
                         });
                 });
         }
+	$x = [];
         $measurements = $measurementsQuery->orderBy('id', 'desc')->get();
 
         // eager load stuff needed in JS
@@ -359,10 +360,12 @@ class Pro extends Model
             $measurement->timestamp = friendly_date_time($measurement->created_at);
 
             unset($measurement->client); // we do not need this travelling to the frontend
-        }
-
-
-
+            if($measurement->label == 'SBP' || $measurement->label = 'DBP'){
+                continue;
+	        }
+	        $x[] = $measurement;
+	    }
+	
         return $measurements;
     }
 }