Skip to content

Commit

Permalink
feat: add radio boolean program metadata table (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
polomarcus authored May 3, 2024
1 parent 42ea1c1 commit 5bf21c4
Show file tree
Hide file tree
Showing 4 changed files with 476 additions and 0 deletions.
30 changes: 30 additions & 0 deletions alembic/versions/a0a707673259_add_radio_to_program_metadata.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"""Add radio to program metadata
Revision ID: a0a707673259
Revises: 5bff4dceda53
Create Date: 2024-05-03 09:36:04.954535
"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = 'a0a707673259'
down_revision: Union[str, None] = '5bff4dceda53'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('program_metadata', sa.Column('radio', sa.Boolean(), nullable=True))
# ### end Alembic commands ###


def downgrade() -> None:
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('program_metadata', 'radio')
# ### end Alembic commands ###
Loading

1 comment on commit 5bf21c4

@github-actions
Copy link

Choose a reason for hiding this comment

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

Coverage

Coverage Report
FileStmtsMissCoverMissing
postgres
   insert_data.py44784%36–38, 57–59, 64
   insert_existing_data_example.py19384%25–27
postgres/schemas
   models.py1421093%116–123, 135–136, 193–194, 208–209
quotaclimat/data_ingestion
   scrap_sitemap.py1341787%27–28, 33–34, 66–71, 95–97, 138–140, 202, 223–228
quotaclimat/data_ingestion/ingest_db
   ingest_sitemap_in_db.py553733%21–42, 45–58, 62–73
quotaclimat/data_ingestion/scrap_html
   scrap_description_article.py36392%19–20, 32
quotaclimat/data_processing/mediatree
   api_import.py18411040%42–46, 51–63, 67–70, 76, 79–112, 118–133, 137–138, 151–163, 167–173, 186–197, 200–204, 210, 237–238, 242, 246–265, 268–270
   channel_program.py91990%21–23, 34–36, 50, 86, 95
   config.py15287%7, 16
   detect_keywords.py180498%178, 230–232
   update_pg_keywords.py443032%14–84, 105–106, 127–152, 158
   utils.py662365%18, 29–53, 56, 65, 81–82
quotaclimat/utils
   healthcheck_config.py291452%22–24, 27–38
   logger.py241154%22–24, 28–37
   sentry.py10280%21–22
TOTAL109928274% 

Tests Skipped Failures Errors Time
79 0 💤 0 ❌ 0 🔥 59.638s ⏱️

Please sign in to comment.