crieur 1.9.0__py3-none-any.whl → 1.9.1__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 crieur might be problematic. Click here for more details.

crieur/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
1
  from pathlib import Path
2
2
 
3
- VERSION = "1.9.0"
3
+ VERSION = "1.9.1"
4
4
  ROOT_DIR = Path(__file__).parent
crieur/models.py CHANGED
@@ -258,9 +258,11 @@ def collect_authors(numeros):
258
258
  if not article.authors:
259
259
  continue
260
260
  for athr in article.authors:
261
- author_forname = athr["forname"]
262
- author_surname = athr["surname"]
263
- author_name = f"{author_forname} {author_surname}"
261
+ author_forname = athr.get("forname", "")
262
+ author_surname = athr.get("surname", "")
263
+ author_name = f"{author_forname} {author_surname}".strip()
264
+ if not author_name:
265
+ continue
264
266
  author_slug = slugify(author_name)
265
267
  if author_slug in authors:
266
268
  authors[author_slug].articles.append(article)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: crieur
3
- Version: 1.9.0
3
+ Version: 1.9.1
4
4
  Summary: A Static Revue Generator.
5
5
  Project-URL: Homepage, https://gitlab.huma-num.fr/ecrinum/crieur
6
6
  Project-URL: Issues, https://gitlab.huma-num.fr/ecrinum/crieur/-/issues
@@ -1,8 +1,8 @@
1
- crieur/__init__.py,sha256=ZJOCIUzy2o5L-mgMGxNHIWtADhWrRpuSlc6YJ2m3vwM,77
1
+ crieur/__init__.py,sha256=puCj4_kji3yq03piHwqm8C6Xfe3FDO-v0-pfv95slI8,77
2
2
  crieur/__main__.py,sha256=bYt9eEaoRQWdejEHFD8REx9jxVEdZptECFsV7F49Ink,30
3
3
  crieur/cli.py,sha256=trYYSwcYsyPoWluZSVLoSA-8w86uQy3Wnw_w6724g8k,5809
4
4
  crieur/generator.py,sha256=druWYkgrSzdWnRJDQkLT-EuabdMib_nw1tdIS1fGLPM,4745
5
- crieur/models.py,sha256=9bWbUW6wuZATTJq9DsawQ5a5EQnmByu-o812ImZY4sE,9239
5
+ crieur/models.py,sha256=gBQx-3OFAsksfxH-OHI8Tm1J5YAwxyvfkQfoQkl5TP8,9328
6
6
  crieur/typography.py,sha256=zZHJLZ8aUslMuiNX6z4buKNDZuj7gcrUxcIGACWmIHw,2759
7
7
  crieur/utils.py,sha256=kIdxpd5LgVv13Lx2aEXzjQttBDtcppRlwNsH0vwX8f0,1566
8
8
  crieur/statics/pico.css,sha256=VdrimW9PLcEIzqJ__s062OrwBj_Jb6jZIwbtdqOtM-w,93407
@@ -12,8 +12,8 @@ crieur/templates/base.html,sha256=4ZOLAnmle0_m8Y3lWT6wcH8f-_7SymxEDeIUzDQNnks,16
12
12
  crieur/templates/homepage.html,sha256=7YG7kA4AFuyrSuqWeFAVj09ogwsybE7w0-NKMLWms5s,2994
13
13
  crieur/templates/keyword.html,sha256=Hv3Ep3R6oN5pBw14gfQT-aeqEiuFiatmVZLWn5hR1e4,428
14
14
  crieur/templates/numero.html,sha256=F7hCaAHJ1WRWxD_zfhJzyLaiwXblJWJF7DUTy41Mnu8,1849
15
- crieur-1.9.0.dist-info/METADATA,sha256=VLt9yDF14XYgJUYNk1eQcBWRDnOkvqRfbN-3PRq6ynk,45269
16
- crieur-1.9.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
17
- crieur-1.9.0.dist-info/entry_points.txt,sha256=edmbmPxs9QXyvSMpPJBDPGw3vZOJEKqXJhysYNx3QSM,43
18
- crieur-1.9.0.dist-info/licenses/LICENSE,sha256=F5acw9_laHeyi4wPmQyf_ttyz81VqCIwScwO8C1FhXU,34519
19
- crieur-1.9.0.dist-info/RECORD,,
15
+ crieur-1.9.1.dist-info/METADATA,sha256=WJJ2fhQNWspEhZkozJpbk48Er0USIMDXCCVkohn-Q4Q,45269
16
+ crieur-1.9.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
17
+ crieur-1.9.1.dist-info/entry_points.txt,sha256=edmbmPxs9QXyvSMpPJBDPGw3vZOJEKqXJhysYNx3QSM,43
18
+ crieur-1.9.1.dist-info/licenses/LICENSE,sha256=F5acw9_laHeyi4wPmQyf_ttyz81VqCIwScwO8C1FhXU,34519
19
+ crieur-1.9.1.dist-info/RECORD,,
File without changes