remove unused comment, and drop readonly settings on update

This commit is contained in:
dni ⚡
2022-12-06 15:30:53 +01:00
parent f2da8fc277
commit 344e951368
2 changed files with 3 additions and 5 deletions
+2
View File
@@ -46,6 +46,8 @@ async def update_admin_settings(data: UpdateSettings):
def get_q_and_values(data):
keys = []
values = []
data.pop("lnbits_allowed_funding_sources")
data.pop("super_user")
for key, value in data.items():
setattr(settings, key, value)
keys.append(f"{key} = ?")