inveniosoftware / invenio-vocabularies

Invenio module for managing vocabularies.
https://invenio-vocabularies.readthedocs.io
MIT License
2 stars 40 forks source link

funders: fix: ROR v2 label names with lang None #340

Closed ptamarit closed 3 weeks ago

ptamarit commented 3 weeks ago

:heart: Thank you for your contribution!

Description

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

Frontend

Reminder

By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

  1. You license your contribution under the same terms as the current repository’s license.
  2. You agree that you have the right to license your contribution under the current repository’s license.
ptamarit commented 3 weeks ago

Yup, I fixed it in https://github.com/inveniosoftware/invenio-vocabularies/pull/327/files#top but this is good.

Thanks for having a look! Sorry, I was testing what was already merged, and totally missed the fix in the affiliations PR.

After seeing your fix, I actually replaced:

lang = lang if lang is not None else "en"

by:

if lang is None:
    lang = "en"

Two lines, but clearer. :)