BookOps-CAT / NightShift

Copy cataloging bot
MIT License
7 stars 1 forks source link

Manager #14

Closed klinga closed 2 years ago

klinga commented 2 years ago

Apologies for another large PR. This pull includes top level modules (bot.py, manager.py, tasks.py) that allow running the entire record upgrade procedure. I hope the docstrings, comments and the first details in README will give a better understanding how this supposed to work.

Initially, we were leaning toward a soft delete of expired resources, but I'm comfortable to do a hard delete now. I modified code to make this happen and I created a new database table Event that flattens and preserves information for any statistical purposes.

There are also some small changes to previously reviewed code:

klinga commented 2 years ago

Big thanks @mwbenowitz ! Unfortunately, will have another PR very soon. Please don't feel pressure and take your time.