Procházet zdrojové kódy

微信指数更新

xueyiming před 1 týdnem
rodič
revize
e970f69387
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      app/hot_content/wxindex_words.py

+ 2 - 1
app/hot_content/wxindex_words.py

@@ -7,6 +7,7 @@ from typing import Any
 
 from app.hot_content.client import JsonApiClient
 from app.hot_content.demand_export import get_wxindex_keywords
+from app.hot_content.exceptions import HotContentFlowError
 from app.hot_content.repository import HotContentRepository
 from app.hot_content.timezone import SHANGHAI_TZ
 
@@ -599,7 +600,7 @@ def backfill_wxindex_word_meta(
             include_expired=include_expired,
             dry_run=dry_run,
         )
-        if reason in {"registered", "dry_run"}:
+        if reason in {"registered", "dry_run", "updated"}:
             register_summary["registered"] += 1
             if verbose:
                 label = "[dry-run] would register" if dry_run else "registered"