commons-metrics 0.0.26__tar.gz → 0.0.27__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.
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/PKG-INFO +1 -1
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/commons_metrics/__init__.py +1 -1
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/commons_metrics/repositories.py +2 -8
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/commons_metrics.egg-info/PKG-INFO +1 -1
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/setup.py +1 -1
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/LICENSE +0 -0
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/README.md +0 -0
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/commons_metrics/azure_devops_client.py +0 -0
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/commons_metrics/cache_manager.py +0 -0
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/commons_metrics/commons_repos_client.py +0 -0
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/commons_metrics/database.py +0 -0
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/commons_metrics/date_utils.py +0 -0
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/commons_metrics/github_api_client.py +0 -0
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/commons_metrics/s3_file_manager.py +0 -0
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/commons_metrics/text_simplifier.py +0 -0
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/commons_metrics/update_design_components.py +0 -0
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/commons_metrics/util.py +0 -0
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/commons_metrics/variable_finder.py +0 -0
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/commons_metrics.egg-info/SOURCES.txt +0 -0
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/commons_metrics.egg-info/dependency_links.txt +0 -0
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/commons_metrics.egg-info/requires.txt +0 -0
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/commons_metrics.egg-info/top_level.txt +0 -0
- {commons_metrics-0.0.26 → commons_metrics-0.0.27}/setup.cfg +0 -0
|
@@ -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.
|
|
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)
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name='commons_metrics',
|
|
5
|
-
version='0.0.
|
|
5
|
+
version='0.0.27',
|
|
6
6
|
description='A simple library for basic statistical calculations',
|
|
7
7
|
#long_description=open('USAGE.md').read(),
|
|
8
8
|
#long_description_content_type='text/markdown',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{commons_metrics-0.0.26 → commons_metrics-0.0.27}/commons_metrics/update_design_components.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{commons_metrics-0.0.26 → commons_metrics-0.0.27}/commons_metrics.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|