commons-metrics 0.0.18__py3-none-any.whl → 0.0.19__py3-none-any.whl

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.
@@ -6,4 +6,4 @@ from .github_api_client import GitHubAPIClient
6
6
  from .azure_devops_client import AzureDevOpsClient
7
7
 
8
8
  __all__ = ['Util', 'DatabaseConnection', 'ComponentRepository', 'UpdateDesignSystemComponents', 'GitHubAPIClient', 'AzureDevOpsClient']
9
- __version__ = '0.0.18'
9
+ __version__ = '0.0.19'
@@ -112,14 +112,14 @@ class ComponentRepository:
112
112
  if cursor:
113
113
  cursor.close()
114
114
 
115
- def save_adoption(self, version_id: int, component_id: int, aplication_code: str, count: int, date_id: int = None):
115
+ def save_adoption(self, version_id: int, component_id: int, application_code: str, count: int, date_id: int = None):
116
116
  """
117
117
  Inserta un registro de adopción en la tabla schmetrc.general_adoption
118
118
 
119
119
  Args:
120
120
  version_id (int): ID de la versión del sistema de diseño
121
121
  component_id (int): ID del componente
122
- aplication_code (str): Código de aplicación (ej: NU0296001)
122
+ application_code (str): Código de aplicación (ej: NU0296001)
123
123
  count (int): Cantidad de usos del componente
124
124
  date_id (int, optional): ID de la fecha en measurement_systems_history. Por defecto None
125
125
  """
@@ -127,12 +127,12 @@ class ComponentRepository:
127
127
  try:
128
128
  cursor = self.db.connection.cursor()
129
129
  insert_query = """
130
- INSERT INTO schmetrc.general_adoption(version_id, component_id, aplication_code, count, date_id)
130
+ INSERT INTO schmetrc.general_adoption(version_id, component_id, application_code, count, date_id)
131
131
  VALUES (%s, %s, %s, %s, %s)
132
132
  RETURNING id;
133
133
  """
134
134
 
135
- cursor.execute(insert_query, (version_id, component_id, aplication_code, count, date_id))
135
+ cursor.execute(insert_query, (version_id, component_id, application_code, count, date_id))
136
136
  adoption_id = cursor.fetchone()[0]
137
137
  self.db.commit_transaction()
138
138
  return adoption_id
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: commons_metrics
3
- Version: 0.0.18
3
+ Version: 0.0.19
4
4
  Summary: A simple library for basic statistical calculations
5
5
  Author: Bancolombia
6
6
  Author-email: omar.david.pino@email.com
@@ -1,4 +1,4 @@
1
- commons_metrics/__init__.py,sha256=zLT4kmogcGARPf9DuuBv_r72fwAdvy5ff9y3CNAOnyk,434
1
+ commons_metrics/__init__.py,sha256=KLUSIRAzdBgkls4Gdq2ajQSK1U8axqxbWooq2390ppg,434
2
2
  commons_metrics/azure_devops_client.py,sha256=sD130ggzZWUsNqkBVNrLH80_AN00CxQ4preP9sBdzHM,16778
3
3
  commons_metrics/cache_manager.py,sha256=ARZBqUCGzpNeQuU2ixd8gu_kqW4PYujnN8Ve9EdIG00,2249
4
4
  commons_metrics/commons_repos_client.py,sha256=SYIe1fFXM3qlc_G154AmorHScPS3rTsztKqxy3dD28w,4150
@@ -6,14 +6,14 @@ commons_metrics/connection_database.py,sha256=JvmEuhnnaE3MyQJfN4nXZzVuXB-hfWUAbJ
6
6
  commons_metrics/database.py,sha256=570TtLZ9psNzvIp75UFLYph34cKVEz6eGJgxXyRyjW4,1285
7
7
  commons_metrics/date_utils.py,sha256=owKtefTWQ6zT-a3ssurPlphjfjGyxtwrZ_EuFkrPhf0,2265
8
8
  commons_metrics/github_api_client.py,sha256=yPLsqn_KvQDIXcNp7Ma8qQwWy8svpXNLpDX69vwL9BU,11465
9
- commons_metrics/repositories.py,sha256=4hSA51Ft1qcZvHtNta_QKSkHIe78JmsVlKcihzkBcb4,9476
9
+ commons_metrics/repositories.py,sha256=47JK9rhcpx_X6RWRkM3768qTwk39ODm8LLvi6QzZDdQ,9480
10
10
  commons_metrics/s3_file_manager.py,sha256=qyviGsLKuNWeEPtHpITfbL62RmPeuf5CZTzHBnAUS_U,3489
11
11
  commons_metrics/text_simplifier.py,sha256=U0oVy2tpOOin5MbfK-9R3euy2P_SkR0b8chto-qy0_M,1257
12
12
  commons_metrics/update_design_components.py,sha256=QpY0GCCCMjdYOZ7b8oNigU9iTpiGx91CYsyWwN8WVDA,7660
13
13
  commons_metrics/util.py,sha256=98zuynalXumQRh-BB0Bcjyoh6vS2BTOUM8tVgr7iS9Q,1225
14
14
  commons_metrics/variable_finder.py,sha256=fTy4njbvZcwBgRDc3MbKejUJkgJS2Mj1ByzRtvS9uV8,7101
15
- commons_metrics-0.0.18.dist-info/licenses/LICENSE,sha256=jsHZ2Sh1wCL74HC25pDDGXCyQ0xgsTAy62FvEnehKIg,1067
16
- commons_metrics-0.0.18.dist-info/METADATA,sha256=bRiZoXClNrqzTcwgjQI9ozHnd5mLofczOH9lv3Xk4AE,402
17
- commons_metrics-0.0.18.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
- commons_metrics-0.0.18.dist-info/top_level.txt,sha256=lheUN-3OKdU3A8Tg8Y-1IEB_9i_vVRA0g_FOiUsTQz8,16
19
- commons_metrics-0.0.18.dist-info/RECORD,,
15
+ commons_metrics-0.0.19.dist-info/licenses/LICENSE,sha256=jsHZ2Sh1wCL74HC25pDDGXCyQ0xgsTAy62FvEnehKIg,1067
16
+ commons_metrics-0.0.19.dist-info/METADATA,sha256=8VpXSw5DR72lq37vn77fDV6pBojB9QfKOYvyjCmLddg,402
17
+ commons_metrics-0.0.19.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
18
+ commons_metrics-0.0.19.dist-info/top_level.txt,sha256=lheUN-3OKdU3A8Tg8Y-1IEB_9i_vVRA0g_FOiUsTQz8,16
19
+ commons_metrics-0.0.19.dist-info/RECORD,,