mirror of https://github.com/MISP/PyMISP
Debug print removed
parent
f490898a5c
commit
ca382960ef
|
@ -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) ##################
|
||||||
|
|
Loading…
Reference in New Issue