crieur 1.9.0__tar.gz → 1.9.1__tar.gz

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.

@@ -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,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
@@ -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)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes