Skip to content

Commit 22fc3fa

Browse files
committed
Adapt to new filter save location
1 parent edfde8f commit 22fc3fa

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/browsergym/workarena/config.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@
2727
REPORT_RETRIEVAL_VALUE_CONFIG_PATH = str(
2828
resources.files(data_files).joinpath("task_configs/report_retrieval_value_task.json")
2929
)
30-
# ... data filter for report tasks
31-
REPORT_FILTER_CONFIG_PATH = str(
32-
resources.files(data_files).joinpath("task_configs/report_data_filter_config.json")
33-
)
3430

3531
# Path to knowledge base task configurations
3632
KB_CONFIG_PATH = str(
@@ -230,11 +226,4 @@
230226

231227
# Report date filter patch flag
232228
REPORT_PATCH_FLAG = "WORKARENA_DATE_FILTER_PATCH"
233-
if exists(REPORT_FILTER_CONFIG_PATH):
234-
with open(REPORT_FILTER_CONFIG_PATH, "r") as file:
235-
report_filter_config = json_load(file)
236-
REPORT_DATE_FILTER = report_filter_config.get("report_date_filter", None)
237-
REPORT_TIME_FILTER = report_filter_config.get("report_time_filter", None)
238-
else:
239-
REPORT_DATE_FILTER = None
240-
REPORT_TIME_FILTER = None
229+
REPORT_FILTER_PROPERTY = "workarena.report.filter.config"

0 commit comments

Comments
 (0)