Return the (distro, release) pairs snapshotted at app startup. The DB is read-only and baked into the Docker image in prod, so the snapshot is valid for the lifetime of the process. Rebuilding the DB in dev requires a server restart to pick up new distros.
()
| 73 | |
| 74 | |
| 75 | def get_distros() -> list[tuple[str, str]]: |
| 76 | """Return the (distro, release) pairs snapshotted at app startup. |
| 77 | |
| 78 | The DB is read-only and baked into the Docker image in prod, so the |
| 79 | snapshot is valid for the lifetime of the process. Rebuilding the |
| 80 | DB in dev requires a server restart to pick up new distros. |
| 81 | """ |
| 82 | return current_app.config["STARTUP_DISTROS"] |
| 83 | |
| 84 | |
| 85 | def create_app(db_path=None): |
no outgoing calls
no test coverage detected