TheDarkLordSano / HFYBeetusBot

Full Control Mwuahahhaha
GNU General Public License v2.0
5 stars 1 forks source link

Resolve submission serialization #17

Closed narthollis closed 7 years ago

narthollis commented 7 years ago

This commit should resolve the submission serialization issue by no longer attempting to serialize praw.Models.Submission.

Instead, before calling process_submission we create a namedtuple containing all of the data we need from the real submission.

We then reconstruct this namedtuple at the start of every function that may receive a serialized version of it.

This PR also add type hinting docstrings to the task methods. (I did this to keep track of where I was up to while verifying all other task parameters should be serializable)