wcp-library 1.2.8__tar.gz → 1.2.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. {wcp_library-1.2.8 → wcp_library-1.2.9}/PKG-INFO +1 -1
  2. {wcp_library-1.2.8 → wcp_library-1.2.9}/pyproject.toml +1 -1
  3. {wcp_library-1.2.8 → wcp_library-1.2.9}/wcp_library/async_sql/oracle.py +4 -1
  4. {wcp_library-1.2.8 → wcp_library-1.2.9}/wcp_library/async_sql/postgres.py +4 -1
  5. {wcp_library-1.2.8 → wcp_library-1.2.9}/wcp_library/sql/oracle.py +4 -1
  6. {wcp_library-1.2.8 → wcp_library-1.2.9}/wcp_library/sql/postgres.py +4 -1
  7. {wcp_library-1.2.8 → wcp_library-1.2.9}/README.md +0 -0
  8. {wcp_library-1.2.8 → wcp_library-1.2.9}/wcp_library/__init__.py +0 -0
  9. {wcp_library-1.2.8 → wcp_library-1.2.9}/wcp_library/async_credentials/__init__.py +0 -0
  10. {wcp_library-1.2.8 → wcp_library-1.2.9}/wcp_library/async_credentials/api.py +0 -0
  11. {wcp_library-1.2.8 → wcp_library-1.2.9}/wcp_library/async_credentials/oracle.py +0 -0
  12. {wcp_library-1.2.8 → wcp_library-1.2.9}/wcp_library/async_credentials/postgres.py +0 -0
  13. {wcp_library-1.2.8 → wcp_library-1.2.9}/wcp_library/async_sql/__init__.py +0 -0
  14. {wcp_library-1.2.8 → wcp_library-1.2.9}/wcp_library/credentials/__init__.py +0 -0
  15. {wcp_library-1.2.8 → wcp_library-1.2.9}/wcp_library/credentials/ftp.py +0 -0
  16. {wcp_library-1.2.8 → wcp_library-1.2.9}/wcp_library/credentials/oracle.py +0 -0
  17. {wcp_library-1.2.8 → wcp_library-1.2.9}/wcp_library/credentials/postgres.py +0 -0
  18. {wcp_library-1.2.8 → wcp_library-1.2.9}/wcp_library/emailing.py +0 -0
  19. {wcp_library-1.2.8 → wcp_library-1.2.9}/wcp_library/ftp/__init__.py +0 -0
  20. {wcp_library-1.2.8 → wcp_library-1.2.9}/wcp_library/ftp/ftp.py +0 -0
  21. {wcp_library-1.2.8 → wcp_library-1.2.9}/wcp_library/ftp/sftp.py +0 -0
  22. {wcp_library-1.2.8 → wcp_library-1.2.9}/wcp_library/informatica.py +0 -0
  23. {wcp_library-1.2.8 → wcp_library-1.2.9}/wcp_library/logging.py +0 -0
  24. {wcp_library-1.2.8 → wcp_library-1.2.9}/wcp_library/selenium_helper.py +0 -0
  25. {wcp_library-1.2.8 → wcp_library-1.2.9}/wcp_library/sql/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wcp-library
3
- Version: 1.2.8
3
+ Version: 1.2.9
4
4
  Summary: Common utilites for internal development at WCP
5
5
  Home-page: https://github.com/Whitecap-DNA/WCP-Library
6
6
  Author: Mitch-Petersen
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "wcp-library"
3
- version = "1.2.8"
3
+ version = "1.2.9"
4
4
  description = "Common utilites for internal development at WCP"
5
5
  authors = ["Mitch-Petersen <mitch.petersen@wcap.ca>"]
6
6
  readme = "README.md"
@@ -202,7 +202,10 @@ class AsyncOracleConnection(object):
202
202
  param_list = []
203
203
  for column in match_cols:
204
204
  param_list.append(f"{column} = :{column}")
205
- params = ' AND '.join(param_list)
205
+ if len(param_list) > 1:
206
+ params = ' AND '.join(param_list)
207
+ else:
208
+ params = param_list[0]
206
209
 
207
210
  main_dict = df.to_dict('records')
208
211
  query = f"""DELETE FROM {outputTableName} WHERE {params}"""
@@ -185,7 +185,10 @@ class AsyncPostgresConnection(object):
185
185
  param_list = []
186
186
  for column in match_cols:
187
187
  param_list.append(f"{column} = %({column})s")
188
- params = ' AND '.join(param_list)
188
+ if len(param_list) > 1:
189
+ params = ' AND '.join(param_list)
190
+ else:
191
+ params = param_list[0]
189
192
 
190
193
  main_dict = df.to_dict('records')
191
194
  query = """DELETE FROM {} WHERE {}""".format(outputTableName, params)
@@ -206,7 +206,10 @@ class OracleConnection(object):
206
206
  param_list = []
207
207
  for column in match_cols:
208
208
  param_list.append(f"{column} = :{column}")
209
- params = ' AND '.join(param_list)
209
+ if len(param_list) > 1:
210
+ params = ' AND '.join(param_list)
211
+ else:
212
+ params = param_list[0]
210
213
 
211
214
  main_dict = df.to_dict('records')
212
215
  query = f"""DELETE FROM {outputTableName} WHERE {params}"""
@@ -186,7 +186,10 @@ class PostgresConnection(object):
186
186
  param_list = []
187
187
  for column in match_cols:
188
188
  param_list.append(f"{column} = %({column})s")
189
- params = ' AND '.join(param_list)
189
+ if len(param_list) > 1:
190
+ params = ' AND '.join(param_list)
191
+ else:
192
+ params = param_list[0]
190
193
 
191
194
  main_dict = df.to_dict('records')
192
195
  query = """DELETE FROM {} WHERE {}""".format(outputTableName, params)
File without changes