dsw-database 4.24.0__py2.py3-none-any.whl → 4.25.1__py2.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.
@@ -9,9 +9,9 @@ BuildInfo = namedtuple(
9
9
  )
10
10
 
11
11
  BUILD_INFO = BuildInfo(
12
- version='v4.24.0~6f08ce1',
13
- built_at='2025-11-04 08:27:32Z',
14
- sha='6f08ce19d7480a17290d9ff53a9ceac15af93ce8',
12
+ version='v4.25.1~31a01b8',
13
+ built_at='2025-12-19 12:48:15Z',
14
+ sha='31a01b81b38254d1f771f4b109b60550a1debfa2',
15
15
  branch='HEAD',
16
- tag='v4.24.0',
16
+ tag='v4.25.1',
17
17
  )
dsw/database/model.py CHANGED
@@ -45,8 +45,8 @@ class DBDocument:
45
45
  name: str
46
46
  state: str
47
47
  durability: str
48
- questionnaire_uuid: str
49
- questionnaire_event_uuid: str
48
+ questionnaire_uuid: str | None
49
+ questionnaire_event_uuid: str | None
50
50
  questionnaire_replies_hash: str
51
51
  document_template_id: str
52
52
  format_uuid: str
@@ -62,13 +62,15 @@ class DBDocument:
62
62
 
63
63
  @staticmethod
64
64
  def from_dict_row(data: dict):
65
+ qtn_uuid = data['questionnaire_uuid']
66
+ event_uuid = data['questionnaire_event_uuid']
65
67
  return DBDocument(
66
68
  uuid=str(data['uuid']),
67
69
  name=data['name'],
68
70
  state=data['state'],
69
71
  durability=data['durability'],
70
- questionnaire_uuid=str(data['questionnaire_uuid']),
71
- questionnaire_event_uuid=str(data['questionnaire_event_uuid']),
72
+ questionnaire_uuid=str(qtn_uuid) if qtn_uuid else None,
73
+ questionnaire_event_uuid=str(event_uuid) if event_uuid else None,
72
74
  questionnaire_replies_hash=data['questionnaire_replies_hash'],
73
75
  document_template_id=data['document_template_id'],
74
76
  format_uuid=str(data['format_uuid']),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dsw-database
3
- Version: 4.24.0
3
+ Version: 4.25.1
4
4
  Summary: Library for managing DSW database
5
5
  Author-email: Marek Suchánek <marek.suchanek@ds-wizard.org>
6
6
  License: Apache License 2.0
@@ -20,7 +20,7 @@ Description-Content-Type: text/markdown
20
20
  License-File: LICENSE
21
21
  Requires-Dist: psycopg[binary]
22
22
  Requires-Dist: tenacity
23
- Requires-Dist: dsw-config==4.24.0
23
+ Requires-Dist: dsw-config==4.25.1
24
24
  Dynamic: license-file
25
25
 
26
26
  # Data Stewardship Wizard: Database
@@ -0,0 +1,9 @@
1
+ dsw/database/__init__.py,sha256=58ZXZ8i4xzAvvjUdqt8lvdv28hD0yzY_xxI6n9deynw,55
2
+ dsw/database/build_info.py,sha256=tGprxsqrINBtV_KjxMqofgwmw68_gYoV3GgBY3FUj4Y,381
3
+ dsw/database/database.py,sha256=2hXcU-txscH6qtKz1CT_JHIChdH4G_PgSNcIA6s4Tv8,27457
4
+ dsw/database/model.py,sha256=qe_7vCUyGQQpc1hTf_gh1B1fAj1CsbyKdEE7HT2UkhU,13672
5
+ dsw_database-4.25.1.dist-info/licenses/LICENSE,sha256=rDtJ4LdsXvf_euOpGD0Q86P78K4JyM5m4yfYz9wZ750,11346
6
+ dsw_database-4.25.1.dist-info/METADATA,sha256=cbx-Zf7KjxQ6KUNiCDKrnyYKlntt43lqsV2a3Rv9asE,1843
7
+ dsw_database-4.25.1.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
8
+ dsw_database-4.25.1.dist-info/top_level.txt,sha256=7SfbsHFoJ_vlAgG6C-xzETETwYO71dBrGnod8uMFnjw,4
9
+ dsw_database-4.25.1.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- dsw/database/__init__.py,sha256=58ZXZ8i4xzAvvjUdqt8lvdv28hD0yzY_xxI6n9deynw,55
2
- dsw/database/build_info.py,sha256=2iYwvn6B8DKlKzgQRHUFE0mDYeZLNrZLAjDTcDmk0Qk,381
3
- dsw/database/database.py,sha256=2hXcU-txscH6qtKz1CT_JHIChdH4G_PgSNcIA6s4Tv8,27457
4
- dsw/database/model.py,sha256=ECUNCxbzRuy8dPjEWY1dAkaY1AmdobH6DPGBQPZaaKY,13552
5
- dsw_database-4.24.0.dist-info/licenses/LICENSE,sha256=rDtJ4LdsXvf_euOpGD0Q86P78K4JyM5m4yfYz9wZ750,11346
6
- dsw_database-4.24.0.dist-info/METADATA,sha256=GATGz9WMmP0KzMPgjgIuSo2QdgPqfz0LktZQei1nxBI,1843
7
- dsw_database-4.24.0.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
8
- dsw_database-4.24.0.dist-info/top_level.txt,sha256=7SfbsHFoJ_vlAgG6C-xzETETwYO71dBrGnod8uMFnjw,4
9
- dsw_database-4.24.0.dist-info/RECORD,,