Something went wrong. Try again.
decentralized and customizable links page on top of atproto ligo.at
Something went wrong. Try again.
123456789101112131415161718192021222324252627from sqlite3 import Connectionfrom typing import NamedTuple
from flask import Flask
from src.db import get_db
class AuthServer(NamedTuple): name: str url: str
class Config: db: Connection
def __init__(self, app: Flask): self.db = get_db(app, name="config")
def auth_servers(self) -> list[AuthServer]: raw = ( self.db.cursor() .execute("select name, url from pdss order by relevance desc") .fetchall() ) return [AuthServer(*r) for r in raw]