buggyrace / buggy-race-server

Race server and supporting material for running a "Buggy Racing" Python programming project
https://www.buggyrace.net
Other
1 stars 0 forks source link

cannot save multiple races if race file URL is empty #252

Closed davewhiteland closed 2 months ago

davewhiteland commented 2 months ago

Editing an existing race can trigger an uncaught exception from the database if the race_file_url is empty, because empty race file (string) URL isn't unique.

This is a nullable field so need to make sure it's set to None if it's empty.