fix monitoring numbers

This commit is contained in:
Saeed Vaziry
2024-04-17 21:09:09 +02:00
parent 868b70f530
commit 5a9e8d6799
2 changed files with 12 additions and 7 deletions

View File

@ -32,7 +32,12 @@ function htmx(): HtmxResponse
function vito_version(): string
{
return exec('git describe --tags');
$version = exec('git describe --tags');
if (str($version)->contains('-')) {
return str($version)->before('-').' (dev)';
}
return $version;
}
function convert_time_format($string): string