thunderstore-io / Thunderstore

Thunderstore is a mod database and API for downloading mods. Thunderstore Discord: https://discord.thunderstore.io/
https://thunderstore.io/
GNU Affero General Public License v3.0
128 stars 27 forks source link

Cyberstorm API: return empty PackageVersion.website_url as None #966

Closed anttimaki closed 8 months ago

anttimaki commented 8 months ago

The field works on the database level a bit differently than the other fields in that it allows empty values to be stored as empty strings rather than nulls.

Hide this implementation detail and keep the API consistent by returning None if the field is in fact empty.

Refs TS-1980

anttimaki commented 8 months ago

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.