decentralized and customizable links page on top of atproto ligo.at
atproto link-in-bio python uv
9
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 26 lines 537 B view raw
1from sqlite3 import Connection 2from typing import NamedTuple 3 4from flask import Flask 5 6from src.db import get_db 7 8 9class AuthServer(NamedTuple): 10 name: str 11 url: str 12 13 14class Config: 15 db: Connection 16 17 def __init__(self, app: Flask): 18 self.db = get_db(app, name="config") 19 20 def auth_servers(self) -> list[AuthServer]: 21 raw = ( 22 self.db.cursor() 23 .execute("select name, url from pdss order by relevance desc") 24 .fetchall() 25 ) 26 return [AuthServer(*r) for r in raw]