Skip to content

Commit

Permalink
making the daily pull , pull 3 days worth every day
Browse files Browse the repository at this point in the history
  • Loading branch information
irvins committed Dec 11, 2024
1 parent 2b318ff commit 72f852a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HTNapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -1770,13 +1770,13 @@ public function refreshOmronAccessTokens(){
public function dailyOmronDataPull($since_today = null, $testMode = false) {
// Get patients with tokens
$patients_with_tokens = $this->getPatientsWithTokens();
$since_today = $since_today ?? date("Y-m-d");
$since_today = $since_today ?? date("Y-m-d", strtotime("-3 days"));
if ($testMode) {
$since_today = date("Y-m-d", strtotime("-100 days"));
}
$data = [];

ini_set('max_execution_time', 3000);
ini_set('max_execution_time', 300);
foreach ($patients_with_tokens as $patient) {
// $this->emDebug("patient", $patient);
// Ensure provider_id and omron_client_id are valid
Expand Down

0 comments on commit 72f852a

Please sign in to comment.