educommon 3.9.8__py3-none-any.whl → 3.9.10__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.
- educommon/async_task/tasks.py +5 -0
- educommon/report/constructor/builders/excel/_base.py +9 -3
- educommon/version.conf +5 -5
- {educommon-3.9.8.dist-info → educommon-3.9.10.dist-info}/METADATA +1 -1
- {educommon-3.9.8.dist-info → educommon-3.9.10.dist-info}/RECORD +8 -8
- {educommon-3.9.8.dist-info → educommon-3.9.10.dist-info}/WHEEL +1 -1
- {educommon-3.9.8.dist-info → educommon-3.9.10.dist-info}/dependency_links.txt +0 -0
- {educommon-3.9.8.dist-info → educommon-3.9.10.dist-info}/top_level.txt +0 -0
educommon/async_task/tasks.py
CHANGED
@@ -184,6 +184,8 @@ class AsyncTask(Task):
|
|
184
184
|
'description': '',
|
185
185
|
# прогресс выполнения задачи
|
186
186
|
'progress': 'Неизвестно',
|
187
|
+
'exc_type': '',
|
188
|
+
'exc_message': '',
|
187
189
|
}
|
188
190
|
self.update_state(
|
189
191
|
state=AsyncTaskStatus.to_state(AsyncTaskStatus.STARTED),
|
@@ -280,6 +282,9 @@ class AsyncTask(Task):
|
|
280
282
|
|
281
283
|
Запускается, если во время выполнения задачи возникла ошибка.
|
282
284
|
"""
|
285
|
+
self.state['exc_type'] = type(exc).__name__
|
286
|
+
self.state['exc_message'] = exc.__str__()
|
287
|
+
|
283
288
|
self._update_running_task(
|
284
289
|
task_id,
|
285
290
|
status=AsyncTaskStatus.FAILURE,
|
@@ -1042,9 +1042,15 @@ class DataLoader:
|
|
1042
1042
|
).exclude(
|
1043
1043
|
column_id__in=self._ignored_columns_ids
|
1044
1044
|
).exists():
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1045
|
+
# Является ли модель древовидной(mptt - Modified Preorder Tree Traversal)
|
1046
|
+
if hasattr(self._data_source.model, '_mptt_meta'):
|
1047
|
+
result = result.filter(
|
1048
|
+
self._data_filterer.get_orm_filters()
|
1049
|
+
).distinct(self._data_source.model._mptt_meta.tree_id_attr)
|
1050
|
+
else:
|
1051
|
+
result = result.filter(
|
1052
|
+
self._data_filterer.get_orm_filters()
|
1053
|
+
).distinct('pk')
|
1048
1054
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
1049
1055
|
# Добавление параметров включения вложенных учреждений.
|
1050
1056
|
|
educommon/version.conf
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
# нормальной установки обновлений.
|
5
5
|
|
6
6
|
[version]
|
7
|
-
BRANCH = tags/3.9.
|
8
|
-
VERSION = 3.9.
|
9
|
-
REVISION =
|
10
|
-
VERSION_DATE =
|
11
|
-
REVISION_DATE =
|
7
|
+
BRANCH = tags/3.9.10^0
|
8
|
+
VERSION = 3.9.10
|
9
|
+
REVISION = 1112116de9c8a0d9e1c4ebafd722a54099e01d24
|
10
|
+
VERSION_DATE = 16.08.2024
|
11
|
+
REVISION_DATE = 16.08.2024
|
@@ -1,6 +1,6 @@
|
|
1
1
|
educommon/__init__.py,sha256=fvsBDL7g8HgOTd-JHOh7TSvMcnUauvGVgPuyA2Z9hUI,419
|
2
2
|
educommon/thread_data.py,sha256=n0XtdesP9H92O3rJ8K6fVnJLiHqyJEfh2xpuT36wzxs,61
|
3
|
-
educommon/version.conf,sha256=
|
3
|
+
educommon/version.conf,sha256=OAKPc5vYfi5eE4S1nGWXVq-cTiRTJaacnpZIbC1pQUI,452
|
4
4
|
educommon/about/README.rst,sha256=U48UW5jv-8qHyaV56atzzkNMvzHKXVcWSb_NR06PnMo,2685
|
5
5
|
educommon/about/__init__.py,sha256=H1W0IgW-qX9LCZ49GOJzHdmQGHhh-MA6U1xmNx7WnfM,132
|
6
6
|
educommon/about/apps.py,sha256=GrpJAOE2sF0ukWsqugP_WJS88DO4aL-T3kTLprrJrcA,259
|
@@ -21,7 +21,7 @@ educommon/async_task/exceptions.py,sha256=PaaG2nqP0G2eZ-p0yssca2hhxIccil6MYKH6Zt
|
|
21
21
|
educommon/async_task/helpers.py,sha256=HihuIHrszhVQAb-Cs6-l4npnlNAgctItGBJ-oIPQX74,2706
|
22
22
|
educommon/async_task/locker.py,sha256=TwVFhuEGsK0JHPXsWuqx7t2Op2mUKETY5EvHSeuKjc8,3844
|
23
23
|
educommon/async_task/models.py,sha256=pICrDFr4Vq6KWpa28NIALP45aLs0lqP7YC2p1IQDFSc,7430
|
24
|
-
educommon/async_task/tasks.py,sha256=
|
24
|
+
educommon/async_task/tasks.py,sha256=nPtCJjEu3NyiKj2Vq-mIegmcMiXSPDPaXeF3RpiwzP8,11699
|
25
25
|
educommon/async_task/ui.py,sha256=LD7RwM4-6M_6ZO3Ulwy6_lK7rDPcddg-gB6EOV65494,5829
|
26
26
|
educommon/async_task/migrations/0001_initial.py,sha256=W0HfBmhatmQ7Dy4giGeqaZNtLHiEVAvJqx0AvHaxGZ0,3677
|
27
27
|
educommon/async_task/migrations/0002_task_type_and_status_data.py,sha256=rDGxKnbwu4OqfcodFwA_TR-kfDGRKJhivEBFKuurM30,3359
|
@@ -252,7 +252,7 @@ educommon/report/constructor/utils.py,sha256=lXfKGlqPhmlnSLg4O0FTxRd3kLQtx3WlLQ7
|
|
252
252
|
educommon/report/constructor/validators.py,sha256=E_VKNz0Z3YqJOJTjd7OdZXFMDnW8UUiVUIH9Jk6Irtw,524
|
253
253
|
educommon/report/constructor/builders/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
254
254
|
educommon/report/constructor/builders/excel/__init__.py,sha256=ZjiilnR4FRJm0DM06G3yKHBEDAPXs5JvuPO3JOg2FB8,104
|
255
|
-
educommon/report/constructor/builders/excel/_base.py,sha256=
|
255
|
+
educommon/report/constructor/builders/excel/_base.py,sha256=JHfPgyQjaOhuOI9MpZ4k2_K_tR8AzQTEoNCVnli8lbo,56169
|
256
256
|
educommon/report/constructor/builders/excel/_header.py,sha256=JUHHlBgkENPatp34csKrefteHsdbeCdJzqzSdTtof8M,4758
|
257
257
|
educommon/report/constructor/builders/excel/constants.py,sha256=SM5OEkd7CMrGhuCpMWIdZGy-R1NAUB06973QnECayR0,28
|
258
258
|
educommon/report/constructor/builders/excel/product.py,sha256=NsfjhUViZyi_XpDjiUJDwfgHVRlE98v40RMAa6mpAzk,6229
|
@@ -344,8 +344,8 @@ educommon/ws_log/smev/exceptions.py,sha256=lmy7o2T3dJkqgIhG07qyh5yPqO3qZAYABuT4J
|
|
344
344
|
educommon/ws_log/templates/report/smev_logs.xlsx,sha256=nnYgB0Z_ix8HoxsRICjsZfFRQBdra-5Gd8nWhCxTjYg,10439
|
345
345
|
educommon/ws_log/templates/ui-js/smev-logs-list-window.js,sha256=AGup3D8GTJSY9WdDPj0zBJeYQBFOmGgcbxPOJbKK-nY,513
|
346
346
|
educommon/ws_log/templates/ui-js/smev-logs-report-setting-window.js,sha256=nQ7QYK9frJcE7g7kIt6INg9TlEEJAPPayBJgRaoTePA,1103
|
347
|
-
educommon-3.9.
|
348
|
-
educommon-3.9.
|
349
|
-
educommon-3.9.
|
350
|
-
educommon-3.9.
|
351
|
-
educommon-3.9.
|
347
|
+
educommon-3.9.10.dist-info/METADATA,sha256=ZHwPfiqOXR5xzI0YJNHoy79paWEA8pGjDSjJSyKtPik,1563
|
348
|
+
educommon-3.9.10.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
349
|
+
educommon-3.9.10.dist-info/dependency_links.txt,sha256=RNlr4t-BxZRm7e_IfVo1ikr5ln-7viimzLHvQMO1C_Q,43
|
350
|
+
educommon-3.9.10.dist-info/top_level.txt,sha256=z5fbW7bz_0V1foUm_FGcZ9_MTpW3N1dBN7-kEmMowl4,10
|
351
|
+
educommon-3.9.10.dist-info/RECORD,,
|
File without changes
|
File without changes
|