Include comment content

This commit is contained in:
Thomas Wade 2020-06-06 04:21:35 +09:30
parent c5d4677aab
commit e14f6492ff
2 changed files with 2 additions and 1 deletions

View File

@ -243,6 +243,7 @@ class Submission:
# Parse content from non-hidden comments
comment.author = self._api.get_user(comment_element.select('.comment_username')[0].text.strip())
comment.timestamp = datetime.fromtimestamp(int(comment_element.get('data-timestamp'))) # FIXME: Needs to account for timezone difference since these are server-local epochs. Seems to be hosted in New York's TZ
comment.content = comment_element.select('.comment_text')[0].text.strip()
self._comments.append(comment)

View File

@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name='FAAPI',
version='0.6.3',
version='0.6.4',
packages=find_packages(),
url='https://tem.party/gitea/tom/FAAPI',
license='WTFPL',