swimstroke 0.1.6__py3-none-any.whl → 0.1.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.
swimstroke/hy3.py CHANGED
@@ -90,7 +90,11 @@ def load(fo):
90
90
  swimmer_code = record[4:4+SWIMMER_CODE_LENGTH].decode('latin').lower() # don't strip, padding is part of the key
91
91
  swimmer_gendercode = record[2:3].decode('latin')
92
92
  swimmer_id = record[69:81].decode('latin').strip()
93
+ # swimmer ids are not mandatory! So we need to account for if they
94
+ # are not used in a file
93
95
  birthday_str = record[88:96].decode('latin')
96
+ if len(swimmer_id)==0:
97
+ swimmer_id = f"swimstroke-id-{swimmer_code}-{birthday_str}"
94
98
  swimmer_age = record[97:99].decode('latin').strip()
95
99
  if swimmer_age == "":
96
100
  swimmer_age = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: swimstroke
3
- Version: 0.1.6
3
+ Version: 0.1.8
4
4
  License-File: LICENSE
5
5
  Requires-Dist: PyYAML>=6.0.1
6
6
  Dynamic: license-file
@@ -2,13 +2,13 @@ swimstroke/__init__.py,sha256=HyRSzghNy1qExTdycvl7MsVvwQ7vi3FtqUQbobhepRo,78
2
2
  swimstroke/__main__.py,sha256=d0ln2BGuqyjDIB2OOmZEA4lOjPAjHARuzuo1_WomNZU,1212
3
3
  swimstroke/ev3.py,sha256=Ma1TsRQAop7wQNoeRBdKBZuQyuRpq08OYzdS7dr_llI,3579
4
4
  swimstroke/helpers.py,sha256=0yCYNSnnr_DBHU3ROTFHiEkb2q-OXO6iRe-dFE0G7iI,6598
5
- swimstroke/hy3.py,sha256=op3D7BTKGDKTjx54l3Rf2-bsh45Y-TLbS2_NdshfbQU,16855
5
+ swimstroke/hy3.py,sha256=hP4QNl9IkR_z9GZzziyQHFAMyp6Edu9EzBOf7EiKP9k,17098
6
6
  swimstroke/scb.py,sha256=ow-T4Ou6jC7PQdphARncM7T0hIzj20prD-C9JVBU6Y8,4307
7
7
  swimstroke/sd3.py,sha256=JMYeTOk66YJInRReB3KMFyB1JKnX69sCHdC2_Ey2ypg,47
8
8
  swimstroke/util.py,sha256=5Xfvfngv9T47U_7gddiPw80pHtTAlhomW40JUGDS2iI,1244
9
9
  swimstroke/yaml.py,sha256=4qPS58tBF5u2VOn59o-Z2q5xzfpBOw_APZ2ybMrrxKw,6855
10
- swimstroke-0.1.6.dist-info/licenses/LICENSE,sha256=ua_EyrQ3shMEJAhfgGjSeK_mFf6AIT-QiFG2lQfsntY,1103
11
- swimstroke-0.1.6.dist-info/METADATA,sha256=J3zOeyFyGESqmUGeXMmSez0gflTNA4f_BwO-tdAiVBU,127
12
- swimstroke-0.1.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
13
- swimstroke-0.1.6.dist-info/top_level.txt,sha256=C15CTf7t6T4k83ycljKbwYVziBgz5vqOBEYdK8Y6FfY,11
14
- swimstroke-0.1.6.dist-info/RECORD,,
10
+ swimstroke-0.1.8.dist-info/licenses/LICENSE,sha256=ua_EyrQ3shMEJAhfgGjSeK_mFf6AIT-QiFG2lQfsntY,1103
11
+ swimstroke-0.1.8.dist-info/METADATA,sha256=u8U9amO0i-vtojLXiuVir0E7_Cx4_hXlrApTEpoDjTo,127
12
+ swimstroke-0.1.8.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
13
+ swimstroke-0.1.8.dist-info/top_level.txt,sha256=C15CTf7t6T4k83ycljKbwYVziBgz5vqOBEYdK8Y6FfY,11
14
+ swimstroke-0.1.8.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5