Skip to content

Commit

Permalink
fix run_alert
Browse files Browse the repository at this point in the history
  • Loading branch information
JackZhao516 committed Jan 11, 2025
1 parent 5c3759a commit fd3ad02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def run(self) -> None:
time_frame_sma_filter_ai_analysis=False,
newly_added_stock_ai_analysis=False,
growth_score_filter_ai_analysis=False,
daily_volume_threshold=0,
daily_volume_threshold=500000,
stock_screener_alert_db_name="stock_screener")
stock_alert.run()
print(f"Time taken: {round(time.time() - start, 2)} seconds")
2 changes: 1 addition & 1 deletion smrti_quant_alerts/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ def task():
alert = alert_class(**config.SETTINGS[alert_name]["alert_input_args"])
return alert.run

run_task_at_daily_time(task, **settings["run_time_input_args"])
run_task_at_daily_time(task(), **settings["run_time_input_args"])
logging.info(f"{alert_name} finished")

0 comments on commit fd3ad02

Please sign in to comment.