fix: 法定节假日无消息日期跳过联网确认

This commit is contained in:
Benature
2026-11-28 22:20:49 +08:00
parent 954bea2249
commit d79be58dfa
2 changed files with 6 additions and 1 deletions

View File

@ -1 +1 @@
0.2.10 0.2.11

View File

@ -200,6 +200,11 @@ def main():
) )
if rows: if rows:
return return
import chinese_calendar
if chinese_calendar.is_holiday(day):
storage.mark_day_synced(day.isoformat(), 0)
return
print(f"===== 联网拉取 {day} =====", flush=True) print(f"===== 联网拉取 {day} =====", flush=True)
try: try:
stats = sync_all_chats_for_day( stats = sync_all_chats_for_day(