Skip to content

Commit

Permalink
fix(palletjack): send fixed date fields to AGOL
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Apr 12, 2023
1 parent 2f41c0a commit 0069ed5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/palletjack/src/roadkill/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def _get_secrets():

#: Try to get the secrets from the Cloud Function mount point
if secret_folder.exists():
return json.loads(Path("/secrets/app/secrets.json").read_text(encoding="utf-8"))
return json.loads(
Path("/secrets/app/secrets.prod.json").read_text(encoding="utf-8")
)

#: Otherwise, try to load a local copy for local development
secret_folder = Path(__file__).parent / "secrets"
Expand Down Expand Up @@ -168,7 +170,7 @@ def _transform(dataframe, int_fields, date_fields):
floats_df = transform.DataCleaning.switch_to_float(renamed_df, int_fields)
dates_df = transform.DataCleaning.switch_to_datetime(floats_df, date_fields)

return floats_df
return dates_df


def process():
Expand Down

0 comments on commit 0069ed5

Please sign in to comment.