Skip to content

Commit

Permalink
Merge pull request #155 from prefeitura-rio/send_data_to_datalake
Browse files Browse the repository at this point in the history
Fixing config of basedosdados
  • Loading branch information
TanookiVerde committed Jul 22, 2024
2 parents a280e1c + 0ee63e3 commit 427a355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/app/datalake.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(
self._base_path = os.path.join(os.getcwd(), "/files")

def _prepare_gcp_credential(self) -> None:
base64_credential = os.environ["GCP_JSON_CREDENTIAL"]
base64_credential = os.environ["BASEDOSDADOS_CREDENTIALS_PROD"]

with open("/tmp/credentials.json", "wb") as f:
f.write(base64.b64decode(base64_credential))
Expand Down

0 comments on commit 427a355

Please sign in to comment.