add health import
This commit is contained in:
@@ -335,6 +335,11 @@ function remember_me_lifetime(): int
|
||||
return 60 * 60 * 24 * 30;
|
||||
}
|
||||
|
||||
function remember_cookie_name(): string
|
||||
{
|
||||
return 'mood_remember';
|
||||
}
|
||||
|
||||
function session_cookie_params_for(int $lifetime = 0): array
|
||||
{
|
||||
return [
|
||||
@@ -786,6 +791,10 @@ function day_entry_has_content(array $entry): bool
|
||||
return true;
|
||||
}
|
||||
|
||||
if ((int) ($entry['health']['steps'] ?? 0) > 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return count(array_filter(is_array($entry['events'] ?? null) ? $entry['events'] : [], 'is_array')) > 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user