feat: 포스트를 만들 때 날씨각 캐릭터(해님·구름·달님) 댓글 1~2개 — '날씨각' 표시, 신고·차단 메뉴 없음, 이미 만든 날은 scripts/fill_bot_comments.py
This commit is contained in:
1 parent
d32e24a5ab
commit
98b5c0cbe3
19 files changed
+864
-4
No files matched your search
@@ -27,6 +27,7 @@ from router.v1.feed.protocol import (
|
||||
)
|
||||
from services.air_service import GRADE_LABEL as AIR_GRADE_LABEL
|
||||
from services.air_service import pm10_grade, pm25_grade
|
||||
from services.bot_comment import fill_bot_comments
|
||||
from services.calc.day_slot import NIGHT_AFTER_SUNSET, slot_of
|
||||
from services.calc.index_calc import rank_score
|
||||
from services.calc.moon import MoonNight, nearest, night, view_line
|
||||
@@ -315,6 +316,8 @@ async def build_feed_day(day: date, crud: FeedCRUD, season_crud: SeasonCRUD, reg
|
||||
})
|
||||
err = await DB_SESSION_MNG.execute_lambda_run([lambda s: crud.insert_day(s, rows)])
|
||||
LOG.info(f"[feed] build {day} posts {len(rows)}: {err.name}")
|
||||
if err is ErrorType.SUCCESS:
|
||||
err = await fill_bot_comments(day, crud)
|
||||
return err
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user