This commit changes the functionality of the Content class (and its subclasses) by removing the text from the comments and score fields of Reddit data dictionaries created by Content.strip*. data['comments'] is now an integer, but data['score'] remains a string to preserve using '-' when the score is hidden. It is now the responsibility of wherever this data is used to provide the extra text that these variables used to include, and modifications have been made to the Submission and Subreddit classes to preserve the previous way the data was displayed. Tests modified to expect these changes.
32 KiB
32 KiB