fix(db): missing post ID in db schema

Caused surprisingly little errors. It only broke the interaction graph.
This commit is contained in:
2026-03-04 20:03:48 +00:00
parent b6815c490a
commit 4e99b77492
3 changed files with 7 additions and 3 deletions

View File

@@ -127,8 +127,8 @@ class InteractionAnalysis:
def interaction_graph(self, df: pd.DataFrame):
interactions = {a: {} for a in df["author"].dropna().unique()}
# reply_to refers to the comment id, this allows us to map comment ids to usernames
id_to_author = df.set_index("id")["author"].to_dict()
# reply_to refers to the comment id, this allows us to map comment/post ids to usernames
id_to_author = df.set_index("post_id")["author"].to_dict()
for _, row in df.iterrows():
a = row["author"]