Skip to content

Commit

Permalink
Formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tfnribeiro committed Nov 21, 2024
1 parent 5357f2c commit d867896
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tools/mysql_to_elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ def gen_docs(articles_w_topics):
# The index was deleted / doesn't exist:
target_ids_not_in_es = target_ids

print("Total articles missing: ", len(target_ids_not_in_es))
print(f"""Total articles missing: {len(target_ids_not_in_es)}""")
print(f"""Indexing a total of: {TOTAL_ITEMS}, in batches of: {ITERATION_STEP}""")

# I noticed that if a document is not added then it won't let me query the ES search.
total_added = 0
Expand Down
2 changes: 1 addition & 1 deletion tools/update_es_based_on_url_keyword.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def gen_docs(articles: list[Article]):
ids_of_articles_containing_keyword = ids_of_articles_matching_url_keyword()

print(
f"Got articles for url_keyword '{URL_KEYWORD_TO_UPDATE}', total: {len(ids_of_articles_containing_keyword)}",
f"Got articles for url_keyword '{URL_KEYWORD_TO_UPDATE}' total: {len(ids_of_articles_containing_keyword)}",
)

# Updating url_keyword new_topic mapping
Expand Down

0 comments on commit d867896

Please sign in to comment.