Skip to content

Commit

Permalink
Fixed a 'publish reports to meatculus' parameter so it actually works
Browse files Browse the repository at this point in the history
  • Loading branch information
CodexVeritas committed Dec 21, 2024
1 parent 53871e9 commit 374fa4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions forecasting_tools/forecasting/forecast_bots/forecast_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ async def forecast_questions(
if self.folder_to_save_reports_to:
file_path = self.__create_file_path_to_save_to(questions)
ForecastReport.save_object_list_to_file_path(reports, file_path)
await self._run_coroutines_and_error_if_configured(
[report.publish_report_to_metaculus() for report in reports]
)
if self.publish_reports_to_metaculus:
await self._run_coroutines_and_error_if_configured(
[report.publish_report_to_metaculus() for report in reports]
)
return reports

@abstractmethod
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "forecasting-tools"
version = "0.2.4"
version = "0.2.5"
description = "AI forecasting and research tools to help humans reason about and forecast the future"
authors = ["Benjamin Wilson <mokoresearch@gmail.com>"]
license = "MIT"
Expand Down

0 comments on commit 374fa4c

Please sign in to comment.