fix: Removed duplicate checking - sometimes it just wouldn't upload

pull/7/head
Hannah Ward 2017-01-16 16:10:46 +00:00
parent ffba0c5c73
commit 28d8c7a018
No known key found for this signature in database
GPG Key ID: 6F3BAD60DE190290
1 changed files with 0 additions and 10 deletions

View File

@ -51,16 +51,6 @@ def post_stix(manager, content_block, collection_ids, service_id):
# Load the package
package = pymisp.tools.stix.load_stix(content_block.content)
# Check for duplicates
for attrib in package.attributes:
try:
if (0 != len(MISP.search_index(attrib.value)["response"])):
# It's a dupe!
package.attributes.remove(attrib)
except:
# idk, this is just in case pymisp does a weird
pass
# Push the event to MISP
# TODO: There's probably a proper method to do this rather than json_full
# But I don't wanna read docs