fix: keep upgrades out of codebase (#2957)

* fix: keep upgrades out of codebase

* chore: code format
This commit is contained in:
Vlad Stan
2025-02-12 13:31:53 +00:00
committed by GitHub
parent 1cef614349
commit b76d8b5458
4 changed files with 13 additions and 16 deletions
+5
View File
@@ -9,6 +9,7 @@ from datetime import datetime, timezone
from enum import Enum
from hashlib import sha256
from os import path
from pathlib import Path
from time import gmtime, strftime, time
from typing import Any, Optional
@@ -859,6 +860,10 @@ class ReadOnlySettings(
):
lnbits_admin_ui: bool = Field(default=True)
@property
def lnbits_extensions_upgrade_path(self) -> str:
return str(Path(self.lnbits_data_folder, "upgrades"))
@validator(
"lnbits_allowed_funding_sources",
pre=True,