Skip to content

Commit

Permalink
Merge pull request #259 from TogetherCrew/feat/258-discord-publish-on…
Browse files Browse the repository at this point in the history
…-success

feat: Added publish message for discord!
  • Loading branch information
amindadgar authored Aug 12, 2024
2 parents aaa5090 + dde1a8f commit b20d041
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dags/analyzer_helper/common/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import logging
from datetime import datetime

from tc_analyzer_lib.publish_on_success import publish_on_success
from tc_analyzer_lib.schemas.platform_configs import DiscordAnalyzerConfig
from tc_analyzer_lib.schemas.platform_configs.config_base import PlatformConfigBase
from tc_analyzer_lib.tc_analyzer import TCAnalyzer
Expand Down Expand Up @@ -34,3 +35,6 @@ def analyze(
else:
logging.info(f"{prefix} append analytics to previous analytics results!")
asyncio.run(analyzer.run_once())

# this will just support discord platform
publish_on_success(platform_id, recompute)

0 comments on commit b20d041

Please sign in to comment.