mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-05 19:11:50 +02:00
Comment out some debugs in XF/XF2.
This commit is contained in:
parent
469410cb94
commit
c8b7c4412e
2 changed files with 3 additions and 3 deletions
|
|
@ -111,7 +111,7 @@ class BaseXenForo2ForumAdapter(BaseXenForoForumAdapter):
|
|||
|
||||
def cache_posts(self,topsoup):
|
||||
for post in topsoup.find_all('article',{'class':'message--post'}):
|
||||
logger.debug("Caching %s"%post['data-content'])
|
||||
# logger.debug("Caching %s"%post['data-content'])
|
||||
self.post_cache[post['data-content']] = post
|
||||
|
||||
def get_first_post(self,topsoup):
|
||||
|
|
|
|||
|
|
@ -587,7 +587,7 @@ class BaseXenForoForumAdapter(BaseSiteAdapter):
|
|||
|
||||
def cache_posts(self,topsoup):
|
||||
for post in topsoup.find_all('li',id=re.compile('post-[0-9]+')):
|
||||
logger.debug("Caching %s"%post['id'])
|
||||
# logger.debug("Caching %s"%post['id'])
|
||||
self.post_cache[post['id']] = post
|
||||
|
||||
def get_cache_post(self,postid):
|
||||
|
|
@ -599,7 +599,7 @@ class BaseXenForoForumAdapter(BaseSiteAdapter):
|
|||
postid = "post-"+postid.split('/')[-2]
|
||||
elif '#post-' in postid:
|
||||
postid = postid.split('#')[1]
|
||||
logger.debug("get cache %s %s"%(postid,postid in self.post_cache))
|
||||
# logger.debug("get cache %s %s"%(postid,postid in self.post_cache))
|
||||
return self.post_cache.get(postid,None)
|
||||
|
||||
# grab the text for an individual chapter.
|
||||
|
|
|
|||
Loading…
Reference in a new issue