Closed ethall closed 2 years ago
Previously, when there were no Tasks and Tasks.generate_id was called, the max function would throw a ValueError.
Tasks.generate_id
max
Now we check to see if the Task list is empty before generating a new ID. If empty, then the generated ID will always be 0.
Resolves #23
Thanks a lot for the fix!
Previously, when there were no Tasks and
Tasks.generate_id
was called, themax
function would throw a ValueError.Now we check to see if the Task list is empty before generating a new ID. If empty, then the generated ID will always be 0.
Resolves #23