Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Catch for the same rate
James Colef0517aee53df
diff --git a/app/Support/Http/Api/ExchangeRateConverter.php b/app/Support/Http/Api/ExchangeRateConverter.phpindex c55f464bb1..a3c71b993c 100644--- a/app/Support/Http/Api/ExchangeRateConverter.php+++ b/app/Support/Http/Api/ExchangeRateConverter.php@@ -149,6 +149,9 @@ class ExchangeRateConverterprivate function getFromDB(int $from, int $to, string $date): ?string{+ if($from === $to) {+ return '1';+ }$key = sprintf('cer-%d-%d-%s', $from, $to, $date);// perhaps the rate has been cached during this particular run