RunestoneInteractive / RunestoneComponents

Packaging of the Runestone tools for publishing educational materials using github pages
http://runestoneinteractive.org
Other
101 stars 225 forks source link

Subchap num fix #1277

Closed bjones1 closed 2 years ago

bjones1 commented 2 years ago

The current code contains a case that returns a subchapter number of None, which violates a DB constraint (and is wrong). Here's a fix plus some docs.

bjones1 commented 2 years ago

@bnmnetp, would you review/merge this? It's needed to avoid db exceptions after switching to the new db constraints in the BookServer.