Open Natgho opened 11 months ago
Hey @Natgho, would you be able to add steps to reproduce the issue please? Never seen this one.
I'm also experiencing this error, it seems to be here: https://github.com/Tijani-Dia/dj-tracker/blob/b600d7de58931c541ce529d404f107234bef545d/src/dj_tracker/models.py#L142
I'm guessing because average_duration
is None
(e.g. null=True
on its field allowing this). There needs to be some kind of check before passing this into the round
function @Tijani-Dia (happy to provide a PR for this)
I think you're right @charliemday. A PR would be very welcome.