Skip to content

Commit

Permalink
Handling new location field
Browse files Browse the repository at this point in the history
(cherry picked from commit 06d1df3)
  • Loading branch information
cityofcapetown-opm-bot committed Dec 18, 2024
1 parent 771c96f commit 158a0b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cct_connector/ServiceAlertFixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,12 @@ def _clean_sa_df(data_df: pd.DataFrame) -> pd.DataFrame:
row["Description12"] and
row["Address_x0020_Location_x0020_2"][:len(row["Description12"])] !=
row["Description12"][:len(row["Address_x0020_Location_x0020_2"])]
) else
# Using controlled address field
row["All_x0020_Location_x0020_Selected"] if (
row["All_x0020_Location_x0020_Selected"]
) else None
), axis=1
), axis=1
)
}).assign(**{
# fixing cases where the start and end timestamps roll over the day
Expand Down

0 comments on commit 158a0b5

Please sign in to comment.