Comments (2)
Yeah I had that issue too. This code base is a bit atrocious:
Here is a super hacky solution:
add this after line 66, before hipposcoreDict = calcHipposcore(new_response)
logger.info("initiating fix")
try:
new_response = {}
for ip, data in response.iteritems():
temp_list = []
for item in data:
if item["idSource"] == '':
item["idSource"] = fixThisBrokenFunction(item["source"])
temp_list.append(item)
new_response[ip] = temp_list
except Exception as e:
logger.error('failed to fix their broken stuff', exc_info = True)
logger.error(response)
report = dict()
report['error'] = str(e)
and then right before if name == "main":
def fixThisBrokenBullshit(source):
es = getES()
data = {
'query' : {
'bool' : {
'must' : [
{'match' : {'source' : source}}
]
}
}
}
res = es.search(body=data)
for i in res['hits']['hits']:
if i["_source"]["idSource"] != "":
return i["_source"]["idSource"]
break
else:
continue
from hippocampe.
This is in more.py btw
from hippocampe.
Related Issues (20)
- Problem in running Hippocampe HOT 6
- Error when adding a new feed
- Data access and storage issue
- Unable to schedule hipposched - unable to determine the name of the local timezone HOT 3
- Problem in hippocampe aggregator feed retrieval HOT 3
- Add STIX/TAXII Client Functionality
- Support feeds with multiple coreIntelligence types and multiple data types
- Can't use hippomore, server error HOT 1
- Fresh install of hippocampe not working with Elasticsearch 5.3.x HOT 9
- Hippocampe and Elastic Search query HOT 2
- Hippocampe with supervisor and gunicorn3
- Red horizontal line Shadowbook
- Same as "All is empty" #20
- How to install Hippocampe on RedHat 7 and also to run it as a service instead running python app.py all the time?
- I followed the documentation and installed Hippocampe, but it is not working HOT 1
- I installed Hippocampe on both RedHat 7 and Ubuntu 18.04 but it is not working only the GUI works HOT 1
- Can't set space as delimeter parameter in 'feedname.conf' HOT 1
- Is this project dead?
- Hippocampe as a service
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hippocampe.