Ver código fonte

server changes

root 4 anos atrás
pai
commit
b18d2a0478
1 arquivos alterados com 7 adições e 2 exclusões
  1. 7 2
      app/Models/Pro.php

+ 7 - 2
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,8 +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;
     }
 }