Timestamp not needed to update an event.

Fix #18
pull/2/merge v1.8
Raphaël Vinot 2015-09-08 15:21:00 +02:00
parent 249407c32f
commit 22e4d58a50
2 changed files with 2 additions and 6 deletions

View File

@ -5,7 +5,6 @@
import json
import datetime
import time
import requests
import os
import base64
@ -249,10 +248,7 @@ class PyMISP(object):
event['Event'].pop('proposal_email_lock', None)
event['Event'].pop('publish_timestamp', None)
event['Event'].pop('published', None)
new_timestamp = int(time.time())
if int(event['Event']['timestamp']) == new_timestamp:
new_timestamp += 1
event['Event']['timestamp'] = new_timestamp
event['Event'].pop('timestamp', None)
event['Event']['id'] = int(event['Event']['id'])
return event

View File

@ -4,7 +4,7 @@ from setuptools import setup
setup(
name='pymisp',
version='1.7',
version='1.8',
author='Raphaël Vinot',
author_email='raphael.vinot@circl.lu',
maintainer='Raphaël Vinot',