Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
meatyite committed May 12, 2019
1 parent b946001 commit ab5cfe1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion setup.py
@@ -1,7 +1,7 @@
from distutils.core import setup

setup(name='ynet',
version='1.6.4',
version='1.6.5',
description='ynet.co.il interaction library',
long_description='A Python library that allows you to interact with comments from news articles on ynet.co.il and ynetnews.com.',
author='sl4v',
Expand Down
8 changes: 4 additions & 4 deletions ynet/__init__.py
Expand Up @@ -7,8 +7,6 @@

class Comment:

hasParentComment = False

def __init__(self, article_url='', name='', email='', location='', title='', text='', likes=0, commentNum=0, commentDate=None, commentId=0, parentId=0):
self.article = Article(article_url)
self.name = name
Expand All @@ -21,8 +19,10 @@ def __init__(self, article_url='', name='', email='', location='', title='', tex
self.commentDate = commentDate
self.commentId = commentId
self.parentId = parentId
if parentId != 0:
self.hasParentComment = True
if parentId == 0:
self.isReply = False
else:
self.isReply == True

def GetReplies(self):
all_comments = self.article.GetComments()
Expand Down

0 comments on commit ab5cfe1

Please sign in to comment.