container: finance: fetch: add API_VERSION to env
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
// docker-finance | modern accounting for the power-user
|
// docker-finance | modern accounting for the power-user
|
||||||
//
|
//
|
||||||
// Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
// Copyright (C) 2021-2026 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
||||||
//
|
//
|
||||||
// This program is free software: you can redistribute it and/or modify
|
// This program is free software: you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License as published by
|
// it under the terms of the GNU General Public License as published by
|
||||||
@@ -67,6 +67,7 @@ namespace dfi
|
|||||||
$env = new utils\Env();
|
$env = new utils\Env();
|
||||||
|
|
||||||
// Fetch (API)
|
// Fetch (API)
|
||||||
|
$env->set_env('API_VERSION', getenv('DOCKER_FINANCE_VERSION')); // API version
|
||||||
$env->set_env('API_FETCH_TYPE', strtolower($argv[1])); // API type
|
$env->set_env('API_FETCH_TYPE', strtolower($argv[1])); // API type
|
||||||
$env->set_env('API_FETCH_SUBTYPE', strtolower($argv[2])); // API subtype
|
$env->set_env('API_FETCH_SUBTYPE', strtolower($argv[2])); // API subtype
|
||||||
$env->set_env('API_FETCH_YEAR', getenv('API_FETCH_YEAR')); // API year (to fetch)
|
$env->set_env('API_FETCH_YEAR', getenv('API_FETCH_YEAR')); // API year (to fetch)
|
||||||
|
|||||||
Reference in New Issue
Block a user