Skip to content

Commit

Permalink
fix if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
monodera committed Feb 11, 2025
1 parent dd274a0 commit 05c32a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/targetdb/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ def add_backref_values(df, db=None, table=None, upload_id=None):
logger.error("proposal_category_name is not found in the DataFrame.")
raise KeyError("proposal_category_name is not found in the DataFrame.")

if "partner_id" == df_tmp.columns:
if "partner_id" in df_tmp.columns:
logger.info(
"partner_id is found in the DataFrame. Skip back reference detection."
)
Expand Down

0 comments on commit 05c32a4

Please sign in to comment.