commons-metrics 0.0.26__py3-none-any.whl → 0.0.27__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.
@@ -12,4 +12,4 @@ from .text_simplifier import TextSimplifier
12
12
  from .variable_finder import VariableFinder
13
13
 
14
14
  __all__ = ['Util', 'DatabaseConnection', 'ComponentRepository', 'UpdateDesignSystemComponents', 'GitHubAPIClient', 'AzureDevOpsClient', 'S3FileManager', 'CacheManager', 'CommonsReposClient', 'DateUtils', 'TextSimplifier', 'VariableFinder']
15
- __version__ = '0.0.26'
15
+ __version__ = '0.0.27'
@@ -144,13 +144,6 @@ class ComponentRepository:
144
144
  cursor.close()
145
145
 
146
146
  def get_or_create_current_month_date(self) -> int:
147
- """
148
- Obtiene el ID de la fecha de HOY en measurement_systems_history.
149
- Si no existe, crea un registro con CURRENT_DATE y devuelve su ID.
150
-
151
- Returns:
152
- int: ID del registro de fecha de hoy
153
- """
154
147
  cursor = None
155
148
  try:
156
149
  self.db.ensure_connection()
@@ -159,7 +152,8 @@ class ComponentRepository:
159
152
  query_select = """
160
153
  SELECT id
161
154
  FROM schmetrc.measurement_systems_history
162
- WHERE date = CURRENT_DATE
155
+ WHERE EXTRACT(YEAR FROM date) = EXTRACT(YEAR FROM CURRENT_DATE)
156
+ AND EXTRACT(MONTH FROM date) = EXTRACT(MONTH FROM CURRENT_DATE)
163
157
  LIMIT 1
164
158
  """
165
159
  cursor.execute(query_select)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: commons_metrics
3
- Version: 0.0.26
3
+ Version: 0.0.27
4
4
  Summary: A simple library for basic statistical calculations
5
5
  Author: Bancolombia
6
6
  Author-email: omar.david.pino@email.com
@@ -1,18 +1,18 @@
1
- commons_metrics/__init__.py,sha256=ASO2E0SXMYD_HgRT-ERSGpoHURcaUzlIBouJEpbbiAo,796
1
+ commons_metrics/__init__.py,sha256=mF4Ou5VZST3rFOpj-xbltdvCJl0-Xg_9Yn5SRC3FKMY,796
2
2
  commons_metrics/azure_devops_client.py,sha256=XrGqhr4voFUtGkdB27tnzsMSiNdpfY4stQUU51e1a0U,16755
3
3
  commons_metrics/cache_manager.py,sha256=HOeup9twUizjJAbh1MNXdPT8BMVeLFoolOWlAzMTXkE,2651
4
4
  commons_metrics/commons_repos_client.py,sha256=PiAMLWuDnI8AlZzE3sfQ3s2P23UrYbbqaq63AFRroHc,4695
5
5
  commons_metrics/database.py,sha256=pFJAnkiPpEENDXJ6zqcGXO0CKpruxBt_8zokp4JLB-0,2995
6
6
  commons_metrics/date_utils.py,sha256=8465712QJDGcshqry97Gi90lbMEbvbX3uiuHRVwGHbE,2654
7
7
  commons_metrics/github_api_client.py,sha256=as6VePgfAn1zKBGi_1piPqbf3X7AJzwQ-InCjlwHnxs,18710
8
- commons_metrics/repositories.py,sha256=XG1GeLd47hq2QuDHMH8N2tdaO4gKFordqWDmseflj80,9033
8
+ commons_metrics/repositories.py,sha256=DXa9ZkqtGZ95weOsPKf8-8mnxKNhyjdiu60hiTi5Nts,8903
9
9
  commons_metrics/s3_file_manager.py,sha256=Mm7vlPJeXB46LnCXFs9oz7PQezcIcgYLlSJqMzVf72g,3384
10
10
  commons_metrics/text_simplifier.py,sha256=jRYckQ5APR0A3wY4hg70kOHxHUFuGzd6D-CJC3__j78,1518
11
11
  commons_metrics/update_design_components.py,sha256=QpY0GCCCMjdYOZ7b8oNigU9iTpiGx91CYsyWwN8WVDA,7660
12
12
  commons_metrics/util.py,sha256=98zuynalXumQRh-BB0Bcjyoh6vS2BTOUM8tVgr7iS9Q,1225
13
13
  commons_metrics/variable_finder.py,sha256=pxI_XSd-lq_AiUjDbcUC4knIZhWZwt7HQrQOa-F0ud4,8061
14
- commons_metrics-0.0.26.dist-info/licenses/LICENSE,sha256=jsHZ2Sh1wCL74HC25pDDGXCyQ0xgsTAy62FvEnehKIg,1067
15
- commons_metrics-0.0.26.dist-info/METADATA,sha256=gvBFsIvWQuXLUXxzUv_vFVlmtwt73Yh83X4Ujc1qsqA,402
16
- commons_metrics-0.0.26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
- commons_metrics-0.0.26.dist-info/top_level.txt,sha256=lheUN-3OKdU3A8Tg8Y-1IEB_9i_vVRA0g_FOiUsTQz8,16
18
- commons_metrics-0.0.26.dist-info/RECORD,,
14
+ commons_metrics-0.0.27.dist-info/licenses/LICENSE,sha256=jsHZ2Sh1wCL74HC25pDDGXCyQ0xgsTAy62FvEnehKIg,1067
15
+ commons_metrics-0.0.27.dist-info/METADATA,sha256=m9M83D8G8bDx7QSMJcCcIi0mESOCF5v1andAmEGqRV4,402
16
+ commons_metrics-0.0.27.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
17
+ commons_metrics-0.0.27.dist-info/top_level.txt,sha256=lheUN-3OKdU3A8Tg8Y-1IEB_9i_vVRA0g_FOiUsTQz8,16
18
+ commons_metrics-0.0.27.dist-info/RECORD,,