Skip to content

Commit

Permalink
Add updated run_type logic
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnerlmichael committed Dec 6, 2024
1 parent d300b63 commit 8eb3586
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions manual_flagging/flagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,13 +427,18 @@ def create_bins_and_labels(input_list):
# Get sale.metadata table
commit_sha = sp.getoutput("git rev-parse HEAD")

# Write to sale.group_mean table
run_type = (
"initial_flagging"
if not inputs["manual_update"]
else "manual_update_only_new_sales"
if inputs["manual_update_only_new_sales"]
else "manual_update"
)

df_metadata = flg.get_metadata_df(
run_id=run_id,
timestamp=timestamp,
run_type="initial_flagging"
if inputs["manual_update"] == False
else "manual_update",
run_type=run_type,
commit_sha=commit_sha,
run_note=inputs["run_note"],
)
Expand Down

0 comments on commit 8eb3586

Please sign in to comment.