From af4476096722820f4f91f048d4a82f6681ada812 Mon Sep 17 00:00:00 2001 From: Richard van den Berg Date: Tue, 9 Aug 2016 13:31:44 +0200 Subject: [PATCH] Set default distribution for attributes to inherit --- pymisp/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymisp/api.py b/pymisp/api.py index 9389bcc..ab9a75d 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -415,7 +415,7 @@ class PyMISP(object): event = self._prepare_update(event) for a in attributes: if a.get('distribution') is None: - a['distribution'] = event['Event']['distribution'] + a['distribution'] = 5 event['Event']['Attribute'] = attributes response = self.update_event(event['Event']['id'], event, 'json') return self._check_response(response)