afgutils 1.3.2__tar.gz → 1.3.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: afgutils
3
- Version: 1.3.2
3
+ Version: 1.3.3
4
4
  Summary: Shared support functions
5
5
  Author: Araz Heydarov
6
6
  Author-email: araz.heydarov@asiafinancegroup.com
@@ -29,6 +29,17 @@ from numpy import bool_
29
29
 
30
30
  # session_token_cookie_name = "uwtool_session_token"
31
31
 
32
+ EVENT_LOG_INSERT_SQL = """
33
+ insert into scorto.event_log (event_src_name, event_src_id, event_type) values (?, ?, ?);
34
+ """
35
+
36
+ def log_event(db_cursor: pyodbc.Cursor, event_src_name: str, event_src_id: str, event_type: str):
37
+ _ = DB.execute(db_cursor, EVENT_LOG_INSERT_SQL,
38
+ fetch=None,
39
+ commit=True,
40
+ parameters=(event_src_name, event_src_id, event_type,)
41
+ )
42
+
32
43
 
33
44
  def print_log(*args, **kwargs) -> None:
34
45
  """Prints a line preceeded by a timestamp"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: afgutils
3
- Version: 1.3.2
3
+ Version: 1.3.3
4
4
  Summary: Shared support functions
5
5
  Author: Araz Heydarov
6
6
  Author-email: araz.heydarov@asiafinancegroup.com
@@ -1,6 +1,6 @@
1
1
  from setuptools import find_packages, setup
2
2
 
3
- VERSION = "1.3.2"
3
+ VERSION = "1.3.3"
4
4
  DESCRIPTION = "Shared support functions"
5
5
  LONG_DESCRIPTION = "Shared support functions"
6
6
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes