from .base import TrendingClipAsset
from .constants import TimePeriod


class TrendingNowClips(TrendingClipAsset):
    def __init__(self):
        super().__init__(
            name="trending_now_clips",
            description="Trending clips for the current day",
            time_period=TimePeriod.Now,
            table_name="TRENDING_NOW",
            query_file="queries/trending_now_clips.sql",
            schedule="0 */2 * * *",
        )


feature = TrendingNowClips()

# Export the asset, job, and schedule
trending_clip_asset = feature.asset
trending_clip_job = feature.job
trending_clip_schedule = feature.schedule_def
