swimstroke 0.1.6__py3-none-any.whl → 0.1.7__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
@@ -58,6 +58,7 @@ def load(fo):
58
58
  cur_entry = None
59
59
  cur_team = None
60
60
  _swimmer_code_to_ids = {}
61
+ _swimmer_id_generator = 0
61
62
  _team_short_names = set()
62
63
  already_e2_submitted = False
63
64
  while ((record := fo.read(132))):
@@ -90,6 +91,11 @@ def load(fo):
90
91
  swimmer_code = record[4:4+SWIMMER_CODE_LENGTH].decode('latin').lower() # don't strip, padding is part of the key
91
92
  swimmer_gendercode = record[2:3].decode('latin')
92
93
  swimmer_id = record[69:81].decode('latin').strip()
94
+ # swimmer ids are not mandatory! So we need to account for if they
95
+ # are not used in a file
96
+ if len(swimmer_id)==0:
97
+ swimmer_id = f"swimstroke-id-{_swimmer_id_generator}"
98
+ _swimmer_id_generator += 1
93
99
  birthday_str = record[88:96].decode('latin')
94
100
  swimmer_age = record[97:99].decode('latin').strip()
95
101
  if swimmer_age == "":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: swimstroke
3
- Version: 0.1.6
3
+ Version: 0.1.7
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=DZ0zsHEnm29SdggLs9jY6GEIDMipiqt6SEZFLcI3uHs,17169
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.7.dist-info/licenses/LICENSE,sha256=ua_EyrQ3shMEJAhfgGjSeK_mFf6AIT-QiFG2lQfsntY,1103
11
+ swimstroke-0.1.7.dist-info/METADATA,sha256=Y5_ktlCffb8IT8rbqEGihsIE_a1Fud-I8qood6yrYO4,127
12
+ swimstroke-0.1.7.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
13
+ swimstroke-0.1.7.dist-info/top_level.txt,sha256=C15CTf7t6T4k83ycljKbwYVziBgz5vqOBEYdK8Y6FfY,11
14
+ swimstroke-0.1.7.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