v3.6.0
馃殌 New Features
-
Comments! 馃挰
- A new
Commentobject is now used to store comments for submissions and journals - The comments are organised in a tree structure, and each one contains references to both its parent object (
SubmissionorJournal) and, if the comment is a reply, to its parent comment too - The auxiliary functions
faapi.comment.flatten_commentsandfaapi.comment.sort_commentsallow to flatten the comment tree or reorganise it
- A new
-
Separate
JournalPartialandJournalobjects- The new
JournalPartialclass takes the place of the previousJournalclass, and it is now used only to parse journal from a user's journals folder - The new
Journalclass contains the same fields asJournalPartialwith the addition of comments, and it is only used to parse journal pages
- The new
-
Comparisons
- All objects can now be used with the comparison (==) operator with other objects of the same type or the type of their key property (
id: intfor submissions and journals, andname_url: strfor users)
- All objects can now be used with the comparison (==) operator with other objects of the same type or the type of their key property (
鈿欙笍 Changes
- The
cookiesargument ofFAAPIis now mandatory, and anUnauthorizedexception is raised ifFAAPIis initialised with an empty cookies list - The list of
Submission/Journalobjects returned byFAAPI.gallery,FAAPI.scraps, andFAAPI.journalsnow uses a sharedUserPartialobject in theauthorvariable (i.e. changing a property of the author in one object of the list will change it for the others as well)
馃敡 Fixes
- Fix path checking against robots.txt not working correctly with paths missing a leading forward slash
馃敆 Links
- PyPi release: https://pypi.org/project/FAAPI/3.6.0
- Full changelog: v3.5.0...v3.6.0