fixed extra print and get_thread_by_url bug
This commit is contained in:
		
							parent
							
								
									16f2d7ff8c
								
							
						
					
					
						commit
						828b028469
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -88,7 +88,6 @@ class Forum(object): | ||||||
|     @property |     @property | ||||||
|     def api_key(self): |     def api_key(self): | ||||||
|         if not self.__dict__['api_key']: |         if not self.__dict__['api_key']: | ||||||
|             print 'fetching api_key' |  | ||||||
|             msg = apicall('get_forum_api_key', {'user_api_key':self.user_api_key, |             msg = apicall('get_forum_api_key', {'user_api_key':self.user_api_key, | ||||||
|                                                  'forum_id':self.id}) |                                                  'forum_id':self.id}) | ||||||
|             self.__dict__['api_key'] = msg |             self.__dict__['api_key'] = msg | ||||||
|  | @ -104,6 +103,7 @@ class Forum(object): | ||||||
| 
 | 
 | ||||||
|     def get_thread_by_url(self, url): |     def get_thread_by_url(self, url): | ||||||
|         msg = apicall('get_thread_by_url', {'forum_api_key': self.api_key, 'url': url}) |         msg = apicall('get_thread_by_url', {'forum_api_key': self.api_key, 'url': url}) | ||||||
|  |         if msg: | ||||||
|             return Thread(msg, self.api_key) |             return Thread(msg, self.api_key) | ||||||
| 
 | 
 | ||||||
|     def thread_by_identifier(self, title, identifier): |     def thread_by_identifier(self, title, identifier): | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 James Turk
						James Turk