1
0
This commit is contained in:
Nathan TeBlunthuis 2025-01-12 00:52:38 -08:00
parent 2b4cb7fdf6
commit 8f0ce2dba7

View File

@ -46,7 +46,7 @@ def _week_similarities(week, simfunc, tfidf_path, term_colname, included_subredd
tfidf_colname='tf_idf' tfidf_colname='tf_idf'
if term_ids is not None: if term_ids is not None:
entries = duckdb.sql(f"SELECT A.{tfidf_colname}, B.{term_id} AS {term_id_new}, A.subreddit_id_new FROM entries AS A JOIN term_ids AS B ON A.{term_id_new} == B.{term_id_old}").df() entries = duckdb.sql(f"SELECT A.{tfidf_colname}, B.{term_id} AS {term_id_new}, A.subreddit_id_new FROM entries AS A JOIN term_ids AS B ON A.{term_id_new} == B.old_+{term_id}").df()