Include comment content
This commit is contained in:
parent
c5d4677aab
commit
e14f6492ff
@ -243,6 +243,7 @@ class Submission:
|
|||||||
# Parse content from non-hidden comments
|
# Parse content from non-hidden comments
|
||||||
comment.author = self._api.get_user(comment_element.select('.comment_username')[0].text.strip())
|
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.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)
|
self._comments.append(comment)
|
||||||
|
|
||||||
|
|||||||
2
setup.py
2
setup.py
@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='FAAPI',
|
name='FAAPI',
|
||||||
version='0.6.3',
|
version='0.6.4',
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
url='https://tem.party/gitea/tom/FAAPI',
|
url='https://tem.party/gitea/tom/FAAPI',
|
||||||
license='WTFPL',
|
license='WTFPL',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user