sde1000 / quicktill

Figure out where all the money and stock went to
GNU General Public License v3.0
43 stars 9 forks source link

Remove hard-coded Removecode.id values from register #233

Closed sde1000 closed 2 years ago

sde1000 commented 2 years ago

quicktill.register makes us of two hard-coded values for RemoveCode.idsold and pullthru. There's no guarantee that these will exist in the database.

At the least we should make these IDs configurable. Should we also make sure they exist during startup, eg. with a td.s.merge()? Or simply refuse to start if they don't exist.