Skip to content

Commit d6ba408

Browse files
committed
dev changes deployment with volatility changes
1 parent 44b3071 commit d6ba408

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

scripts/deployment_files/snowflake_deployer.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,15 @@ def create_snowflake_connection(conn_config):
112112
'authenticator': 'snowflake'
113113
}
114114

115-
logger.info(f"Connecting with params: {', '.join(f'{k}={v if k != 'private_key' else '[REDACTED]'}' for k, v in params.items())}")
115+
# Fix the f-string syntax by using a helper function
116+
param_strs = []
117+
for k, v in params.items():
118+
if k == 'private_key':
119+
param_strs.append(f"{k}=[REDACTED]")
120+
else:
121+
param_strs.append(f"{k}={v}")
122+
123+
logger.info(f"Connecting with params: {', '.join(param_strs)}")
116124

117125
# Connect with private key
118126
return snowflake.connector.connect(**params)

udfs_and_spoc/python_udf/co2_volatility/function.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# Last Updated: [Current Date]
55
#------------------------------------------------------------------------------
66

7-
87
import sys
98

109
def calculate_co2_volatility(current_value: float, previous_value: float):

0 commit comments

Comments
 (0)