fix: keep upgrades out of codebase (#2957)
* fix: keep upgrades out of codebase * chore: code format
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user