coati-payroll 0.0.7__py3-none-any.whl → 0.0.8__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.

Potentially problematic release.


This version of coati-payroll might be problematic. Click here for more details.

coati_payroll/cli.py CHANGED
@@ -152,7 +152,15 @@ class PluginsCommand(click.Group):
152
152
  """Habilita el plugin en el registro (active=True)."""
153
153
  try:
154
154
  sync_plugin_registry()
155
- record = db.session.execute(db.select(PluginRegistry).filter_by(plugin_id=name)).scalars().first()
155
+ record = (
156
+ db.session.execute(
157
+ db.select(PluginRegistry).filter(
158
+ (PluginRegistry.plugin_id == name) | (PluginRegistry.distribution_name == name)
159
+ )
160
+ )
161
+ .scalars()
162
+ .first()
163
+ )
156
164
  if record is None:
157
165
  raise click.ClickException("Plugin no registrado en la base de datos")
158
166
  if not record.installed:
@@ -174,7 +182,15 @@ class PluginsCommand(click.Group):
174
182
  """Deshabilita el plugin en el registro (active=False)."""
175
183
  try:
176
184
  sync_plugin_registry()
177
- record = db.session.execute(db.select(PluginRegistry).filter_by(plugin_id=name)).scalars().first()
185
+ record = (
186
+ db.session.execute(
187
+ db.select(PluginRegistry).filter(
188
+ (PluginRegistry.plugin_id == name) | (PluginRegistry.distribution_name == name)
189
+ )
190
+ )
191
+ .scalars()
192
+ .first()
193
+ )
178
194
  if record is None:
179
195
  raise click.ClickException("Plugin no registrado en la base de datos")
180
196
  record.active = False
coati_payroll/version.py CHANGED
@@ -15,4 +15,4 @@
15
15
  Data model for the payroll module.
16
16
  """
17
17
 
18
- __version__ = "0.0.7"
18
+ __version__ = "0.0.8"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: coati-payroll
3
- Version: 0.0.7
3
+ Version: 0.0.8
4
4
  Summary: A jurisdiction-agnostic payroll calculation engine.
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -2,7 +2,7 @@ coati_payroll/__init__.py,sha256=UMMb03475dPNvlnvP4TuyNH0GAmL1FjPi5ND92-igbc,161
2
2
  coati_payroll/app.py,sha256=PPn5U2ViKU8yRiP0OMPkozq4CRWxp9Un27R_jAAkQ_g,3502
3
3
  coati_payroll/audit_helpers.py,sha256=0BDspyO5eQLRrdUCUcu5xe7F--2a-8OOAcejLJ4CcAg,27556
4
4
  coati_payroll/auth.py,sha256=v8yzxQnDZy3kbJnt9MWikyDJNwgCSkZpvfwARUnDh4s,4436
5
- coati_payroll/cli.py,sha256=mDpvB-n7zkruH3lvf9rlgKNP-9LVu8gexyV3rpF1gYA,47474
5
+ coati_payroll/cli.py,sha256=n1DbogA1dYH_Jbs393pvpT_DPi6vSwKWR0sGjsYcbhY,47962
6
6
  coati_payroll/config.py,sha256=dM3kcUsW6_gR1Vopdb_28fWxmhUi7lkj30kJfSU8zrY,9420
7
7
  coati_payroll/demo_data.py,sha256=pE7DUwZWq3jHCwt6vO_kW0sIuMFJmu9u1pqKUGWF9Ag,31437
8
8
  coati_payroll/enums.py,sha256=TEJ8Yxy-0UPsQUSDs7pbZgOg-VoqFOx8KnY0lTh3KzA,9211
@@ -23,7 +23,7 @@ coati_payroll/schema_validator.py,sha256=wa2X7VrXrEA6OzybycHdMD7smKqeF6Vp7oNSmV7
23
23
  coati_payroll/security.py,sha256=EYARqQI6llhfczpGamaaJdFF0fLBHn0-2dWcXy6kEO0,3040
24
24
  coati_payroll/system_reports.py,sha256=b0rLFUsGt-KYZPWh4tSpBeGqdJBOYfIO3cDuIAFJMIg,20406
25
25
  coati_payroll/vacation_service.py,sha256=iMgE7CcCfd5ytCWknyokFlphfYrnmAu6jtlPIPzgpHQ,17600
26
- coati_payroll/version.py,sha256=GvHoJEBHSPur034uKxNMWbpzd5Jp-srmBRasJ0r8KIE,649
26
+ coati_payroll/version.py,sha256=71HuPZkbFfAs5uuL71uIVSiuRYNR1TkAqzucPvGKX_U,649
27
27
  coati_payroll/formula_engine/__init__.py,sha256=Nixn2nFtOk6PGZpnXCwRLnb-Pid_lz6qPRIv7j2P3HM,2461
28
28
  coati_payroll/formula_engine/data_sources.py,sha256=_UapWZiyWUqADnafpcd8936Vpg3Av_R2wxbvUEEi9Dc,30785
29
29
  coati_payroll/formula_engine/engine.py,sha256=f3a7mM8ckiGtE6RMK9ByEZdsllSGUsBLi19WxreDYsE,8897
@@ -238,9 +238,9 @@ coati_payroll/vistas/planilla/services/novedad_service.py,sha256=MYxbiqVrwzBbBTX
238
238
  coati_payroll/vistas/planilla/services/planilla_service.py,sha256=xpqxD6XLdTMRJfbPhvpWSYW7P6IcHKZgW6Ahg7kthk4,1195
239
239
  coati_payroll/vistas/planilla/validators/__init__.py,sha256=K-WnUGZaMYX-2DcduB-yMssuxUlztMCQKuGfqK67Vsk,754
240
240
  coati_payroll/vistas/planilla/validators/planilla_validators.py,sha256=WH1cyY1D7XPSb3MupNszofT3-YvgqBfp8vFDpo8hDA8,1680
241
- coati_payroll-0.0.7.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
242
- coati_payroll-0.0.7.dist-info/METADATA,sha256=ZoyFZS2uXCkabyQsT5uyow5oNwkVoWZgFXEL3SZ_liY,22236
243
- coati_payroll-0.0.7.dist-info/WHEEL,sha256=hPN0AlP2dZM_3ZJZWP4WooepkmU9wzjGgCLCeFjkHLA,92
244
- coati_payroll-0.0.7.dist-info/entry_points.txt,sha256=GtZVGVYEFlpeSs7eHYh701VG7ftRRrZ54fsyFmbeZZc,54
245
- coati_payroll-0.0.7.dist-info/top_level.txt,sha256=wRaRlWHJnSoqktbTT1XJUkPNgKnR7VS75Ytyl8JJYPY,14
246
- coati_payroll-0.0.7.dist-info/RECORD,,
241
+ coati_payroll-0.0.8.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
242
+ coati_payroll-0.0.8.dist-info/METADATA,sha256=ygoFGtenvczpEJCka7hElbztSSdL87hEWLp4ipAIa-s,22236
243
+ coati_payroll-0.0.8.dist-info/WHEEL,sha256=hPN0AlP2dZM_3ZJZWP4WooepkmU9wzjGgCLCeFjkHLA,92
244
+ coati_payroll-0.0.8.dist-info/entry_points.txt,sha256=GtZVGVYEFlpeSs7eHYh701VG7ftRRrZ54fsyFmbeZZc,54
245
+ coati_payroll-0.0.8.dist-info/top_level.txt,sha256=wRaRlWHJnSoqktbTT1XJUkPNgKnR7VS75Ytyl8JJYPY,14
246
+ coati_payroll-0.0.8.dist-info/RECORD,,