Skip to content

Commit 34125c7

Browse files
committed
Revert "fix daily_hot_news slash_command load file path error bug"
This reverts commit db8ea87.
1 parent 08166a3 commit 34125c7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: app/daily_hot_news.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from app.gpt import get_answer_from_llama_web
99

10-
with open("data/hot_news_rss.json", "r") as f:
10+
with open("app/data/hot_news_rss.json", "r") as f:
1111
rss_urls = json.load(f)
1212

1313
TODAY = today = date.today()

Diff for: app/slash_command.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import json
22

3-
with open("data/prompt.json", "r") as f:
3+
with open("app/data/prompt.json", "r") as f:
44
prompt_data = json.load(f)
55

66
def register_slack_slash_commands(slack_app):
@@ -256,4 +256,4 @@ def handle_command_gpt_as_regex_master(ack, say, command):
256256
text=f"<@{user_id}>, let's talk!",
257257
blocks=blocks,
258258
reply_broadcast=True
259-
)
259+
)

0 commit comments

Comments
 (0)