Debug print removed

pull/21/head
Alexandre Dulaunoy 2016-04-28 14:45:02 +02:00
parent f490898a5c
commit ca382960ef
1 changed files with 1 additions and 2 deletions

View File

@ -985,12 +985,11 @@ class PyMISP(object):
""" """
session = self.__prepare_session(force_out) session = self.__prepare_session(force_out)
if (context != 'category'): if (context != 'category'):
context = 'type' context = 'type'
if(percentage!=None): if(percentage!=None):
url = urljoin(self.root_url, 'attributes/attributeStatistics/{}/{}'.format(context, percentage)) url = urljoin(self.root_url, 'attributes/attributeStatistics/{}/{}'.format(context, percentage))
else: else:
url = urljoin(self.root_url, 'attributes/attributeStatistics/{}'.format(context)) url = urljoin(self.root_url, 'attributes/attributeStatistics/{}'.format(context))
print(url)
return session.get(url).json() return session.get(url).json()
# ############## Deprecated (Pure XML API should not be used) ################## # ############## Deprecated (Pure XML API should not be used) ##################