ositah 25.9.dev1__py3-none-any.whl → 25.9.dev2__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 ositah might be problematic. Click here for more details.

ositah/apps/export.py CHANGED
@@ -1096,7 +1096,8 @@ def nsip_export_button(n_clicks, sync_indicator, previous_sync_indicator):
1096
1096
  (
1097
1097
  f"Declaration {http_status} for user {row.email_auth} (NSIP ID:"
1098
1098
  f" {row.email_reseda}), {'project' if project_type else 'reference'}"
1099
- f" ID {int(activity_id)} {action} NSIP"
1099
+ f" ID={int(activity_id)}, master={row.nsip_master}, name="
1100
+ f"{row.nsip_project} {action} NSIP"
1100
1101
  ),
1101
1102
  flush=True,
1102
1103
  )
@@ -1111,8 +1112,9 @@ def nsip_export_button(n_clicks, sync_indicator, previous_sync_indicator):
1111
1112
  (
1112
1113
  f"ERROR: update of declaration failed for user {row.email_auth}"
1113
1114
  f" (NSIP ID: {row.email_reseda}),"
1114
- f" {'project' if project_type else 'reference'} ID"
1115
- f" {int(activity_id)}{http_error}"
1115
+ f" {'project' if project_type else 'reference'} ID="
1116
+ f"{int(activity_id)}, master={row.nsip_master}, name="
1117
+ f"{row.nsip_project}{http_error}"
1116
1118
  ),
1117
1119
  flush=True,
1118
1120
  )
@@ -1121,8 +1123,7 @@ def nsip_export_button(n_clicks, sync_indicator, previous_sync_indicator):
1121
1123
  # message
1122
1124
  if failed_exports < EXPORT_MAX_FAILDED_UPDATES:
1123
1125
  failed_updates.append(
1124
- f"{row.email_auth}/{'projet' if project_type else 'reference'}"
1125
- f"/{int(activity_id)}"
1126
+ f"{row.email_auth}:{row.nsip_master}/{row.nsip_project}"
1126
1127
  )
1127
1128
  elif failed_exports == EXPORT_MAX_FAILDED_UPDATES:
1128
1129
  failed_updates.append("...")
ositah/utils/projects.py CHANGED
@@ -745,6 +745,7 @@ def get_nsip_declarations(period_date: str, team: str):
745
745
  declarations["project.id"] = declarations["project.id"].astype(int)
746
746
  else:
747
747
  declarations["project.id"] = 0
748
+ declarations["project.name"] = np.NaN
748
749
  if "reference.id" in declarations.columns:
749
750
  declarations.loc[declarations["reference.id"].isna(), "reference.id"] = 0
750
751
  declarations["reference.id"] = declarations["reference.id"].astype(int)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ositah
3
- Version: 25.9.dev1
3
+ Version: 25.9.dev2
4
4
  Summary: Outils de Suivi d'Activités basé sur Hito
5
5
  Author-email: Michel Jouvin <michel.jouvin@ijclab.in2p3.fr>
6
6
  License-Expression: BSD-3-Clause
@@ -4,7 +4,7 @@ ositah/main.py,sha256=97IhSMIqIVWC6GdXWievxE-tu30-UboivbW9_NTNzww,15644
4
4
  ositah/ositah.example.cfg,sha256=4zQOL3ynGN9bO6j-bekJeJWUe7Xq-c0eySNOHKMr2K8,8000
5
5
  ositah/apps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  ositah/apps/analysis.py,sha256=J9oE93g6wIvKh9TnT4TudmUdW75wzArx1CaB_1yuRB8,28634
7
- ositah/apps/export.py,sha256=U-sc6dl1Tf78kF1eZkLyL0QNUrReV4h8v9SeOUakjx8,49290
7
+ ositah/apps/export.py,sha256=IeAFb_QtRtaaEFdbKFJLTNBDezukQzzvBY_ZENZ0jdc,49399
8
8
  ositah/apps/configuration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  ositah/apps/configuration/callbacks.py,sha256=HbsyE0WeCTmPl14SAs-mDglvMywxA4qSeVN72jSv-bM,33455
10
10
  ositah/apps/configuration/main.py,sha256=LbyupMqFUPDJCZBuRzoGREuHNxbinj3Ooj1HTJCeYUM,20349
@@ -35,12 +35,12 @@ ositah/utils/hito_db.py,sha256=awVGrd1DAyj6BaEkLjTVN1l9A5SjZUJ1-fQ5PAik7bI,1510
35
35
  ositah/utils/hito_db_model.py,sha256=GvCHp5u-mPQinbZPvF6ONJAWIc2no1KN_VNJv6NCaPk,9356
36
36
  ositah/utils/menus.py,sha256=Xoyo2ySX0MD7phzyO5WjEcR0PCXwsX1TSrzONXnX4yI,12005
37
37
  ositah/utils/period.py,sha256=ZuaiZ2gvSIjd23isvygEVoAvonH4ehbexjrS4EwSGyI,4258
38
- ositah/utils/projects.py,sha256=hdbjXa0pGg1KLm---TgyxPOI0qcNaW64QBWSVbrgjeY,43543
38
+ ositah/utils/projects.py,sha256=vAS0JDN_XycoumqL-YSi5vf_PDSZyy1jfyfEShcudi0,43594
39
39
  ositah/utils/teams.py,sha256=K8Z6kqs-kFpNiIg6wgmmZ3_tmfUPaB7wp0OAGmmZPG4,1234
40
40
  ositah/utils/utils.py,sha256=NQq0roHDvIkKj1gl88yu3bvloH0dPnBE1rKXVP_hdK4,17082
41
- ositah-25.9.dev1.dist-info/licenses/LICENSE,sha256=2C86YWCx1fvz92WySupcb6_t4NhHCVPE_ucy0YMTuoc,1550
42
- ositah-25.9.dev1.dist-info/METADATA,sha256=Kn3pGb54eJmbeDsGgekFm8HWrnoS5OjZzYzoJRw-b94,8075
43
- ositah-25.9.dev1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
44
- ositah-25.9.dev1.dist-info/entry_points.txt,sha256=t9oDDLUO1LwHJewlE862LbJMHpDTEyqbeUAPw_F7Q3I,44
45
- ositah-25.9.dev1.dist-info/top_level.txt,sha256=3kfj_oK4xoZFt0nsw6KKT_aoqshELBu0ryLXECbcqNI,7
46
- ositah-25.9.dev1.dist-info/RECORD,,
41
+ ositah-25.9.dev2.dist-info/licenses/LICENSE,sha256=2C86YWCx1fvz92WySupcb6_t4NhHCVPE_ucy0YMTuoc,1550
42
+ ositah-25.9.dev2.dist-info/METADATA,sha256=B5ODI4wK-vGQz8RGhoBqmcTPjEHgfmc09V0Q2ylb8bU,8075
43
+ ositah-25.9.dev2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
44
+ ositah-25.9.dev2.dist-info/entry_points.txt,sha256=t9oDDLUO1LwHJewlE862LbJMHpDTEyqbeUAPw_F7Q3I,44
45
+ ositah-25.9.dev2.dist-info/top_level.txt,sha256=3kfj_oK4xoZFt0nsw6KKT_aoqshELBu0ryLXECbcqNI,7
46
+ ositah-25.9.dev2.dist-info/RECORD,,