Skip to content

Commit

Permalink
fix: converting period to datetime!
Browse files Browse the repository at this point in the history
the period being passed via api to the DAG is not in datetime format, so we're converting it now.
  • Loading branch information
amindadgar committed Aug 7, 2024
1 parent 7cc47cb commit d174f26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dags/discord_guild_analyzer_etl.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
DiscordTransformRawMembers,
)
from analyzer_helper.discord.fetch_discord_platforms import FetchDiscordPlatforms
from dateutil.parser import parse

with DAG(
dag_id="discord_guild_analyzer_etl",
Expand Down Expand Up @@ -63,7 +64,7 @@ def fetch_discord_platforms(**kwargs) -> dict[str, str | datetime | bool]:
platform = {
"recompute": recompute,
"platform_id": platform_id,
"period": period,
"period": parse(period),
"guild_id": guild_id,
}

Expand Down

0 comments on commit d174f26

Please sign in to comment.