Skip to content

PEDS-1608 Added database-driven to pfb_to_zip #10

Draft
yvonne232 wants to merge 1 commit into
mainfrom
feature/db-driven-export
Draft

PEDS-1608 Added database-driven to pfb_to_zip #10
yvonne232 wants to merge 1 commit into
mainfrom
feature/db-driven-export

Conversation

@yvonne232

Copy link
Copy Markdown

No description provided.

…ded from Amanuensis project_datapoints (with local config fallback)
@grugna grugna changed the title Added database-driven to pfb_to_zip PEDS-1608 Added database-driven to pfb_to_zip Jun 23, 2026
Comment thread pfb_to_zip/db_config.py
Comment on lines +22 to +36
host: str = "localhost",
port: int = 5432,
dbname: str = "amanuensis_pcdc",
user: str = "amanuensis_pcdc",
password: Optional[str] = None,
) -> Dict[str, Any]:
return {
"host": os.environ.get("AMANUENSIS_DB_HOST", host),
"port": int(os.environ.get("AMANUENSIS_DB_PORT", port)),
"dbname": os.environ.get("AMANUENSIS_DB_NAME", dbname),
"user": os.environ.get("AMANUENSIS_DB_USER", user),
"password": os.environ.get("AMANUENSIS_DB_PASSWORD", password),
}


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of connecting directly to the DB we should use the endpoints here: https://github.com/chicagopcdc/amanuensis/blob/master/amanuensis/blueprints/project_datapoints.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants