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

uploading buggy JSON with too-long string values throws error #167

Closed davewhiteland closed 1 year ago

davewhiteland commented 1 year ago

Need to truncate long strings so this doesn't happen.

e.g, for Buggies, not all cols are same max length, so need to do this dynamically.

(Turns out it's fiddly in SQLAlchemy to get a (e.g., string/varchar) column's length, sigh. If this gets too hard, move the settings in to model constants?)