mirror of https://github.com/MISP/PyMISP
parent
249407c32f
commit
22e4d58a50
|
@ -5,7 +5,6 @@
|
||||||
|
|
||||||
import json
|
import json
|
||||||
import datetime
|
import datetime
|
||||||
import time
|
|
||||||
import requests
|
import requests
|
||||||
import os
|
import os
|
||||||
import base64
|
import base64
|
||||||
|
@ -249,10 +248,7 @@ class PyMISP(object):
|
||||||
event['Event'].pop('proposal_email_lock', None)
|
event['Event'].pop('proposal_email_lock', None)
|
||||||
event['Event'].pop('publish_timestamp', None)
|
event['Event'].pop('publish_timestamp', None)
|
||||||
event['Event'].pop('published', None)
|
event['Event'].pop('published', None)
|
||||||
new_timestamp = int(time.time())
|
event['Event'].pop('timestamp', None)
|
||||||
if int(event['Event']['timestamp']) == new_timestamp:
|
|
||||||
new_timestamp += 1
|
|
||||||
event['Event']['timestamp'] = new_timestamp
|
|
||||||
event['Event']['id'] = int(event['Event']['id'])
|
event['Event']['id'] = int(event['Event']['id'])
|
||||||
return event
|
return event
|
||||||
|
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -4,7 +4,7 @@ from setuptools import setup
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='pymisp',
|
name='pymisp',
|
||||||
version='1.7',
|
version='1.8',
|
||||||
author='Raphaël Vinot',
|
author='Raphaël Vinot',
|
||||||
author_email='raphael.vinot@circl.lu',
|
author_email='raphael.vinot@circl.lu',
|
||||||
maintainer='Raphaël Vinot',
|
maintainer='Raphaël Vinot',
|
||||||
|
|
Loading…
Reference in New Issue