mirror of https://github.com/MISP/misp-dashboard
Slight modification to point reward
parent
0080de3d8e
commit
e554158467
|
@ -27,7 +27,7 @@ rankMultiplier = 2
|
||||||
categories_in_datatable = ["internal_reference", "targeting_data", "antivirus_detection", "payload_delivery", "artifacts_dropped", "payload_installation", "persistence_mechanism", "network_activity", "payload_type", "attribution", "external_analysis", "financial_fraud", "support_Tool", "social_network", "person", "other" ]
|
categories_in_datatable = ["internal_reference", "targeting_data", "antivirus_detection", "payload_delivery", "artifacts_dropped", "payload_installation", "persistence_mechanism", "network_activity", "payload_type", "attribution", "external_analysis", "financial_fraud", "support_Tool", "social_network", "person", "other" ]
|
||||||
default_pnts_per_contribution = 1
|
default_pnts_per_contribution = 1
|
||||||
# array of the form [[category, pntsRcv], ...]
|
# array of the form [[category, pntsRcv], ...]
|
||||||
pnts_per_contribution = [["payload_delivery", 5], ["artifact_dropped", 20], ["network_activity", 5]]
|
pnts_per_contribution = [["payload_delivery", 1], ["artifact_dropped", 1], ["network_activity", 1]]
|
||||||
additional_help_text = ["Sightings multiplies earned points by 2", "Editing an attribute earns you the same as creating one"]
|
additional_help_text = ["Sightings multiplies earned points by 2", "Editing an attribute earns you the same as creating one"]
|
||||||
|
|
||||||
[Log]
|
[Log]
|
||||||
|
|
|
@ -149,7 +149,7 @@ def handleContribution(zmq_name, org, contribType, categ, action, pntMultiplier=
|
||||||
|
|
||||||
push_to_redis_zset('CONTRIB_DAY', org, count=pnts_to_add)
|
push_to_redis_zset('CONTRIB_DAY', org, count=pnts_to_add)
|
||||||
#CONTRIB_CATEG retain the contribution per category, not the point earned in this categ
|
#CONTRIB_CATEG retain the contribution per category, not the point earned in this categ
|
||||||
push_to_redis_zset('CONTRIB_CATEG', org, count=DEFAULT_PNTS_REWARD, endSubkey=':'+noSpaceLower(categ))
|
push_to_redis_zset('CONTRIB_CATEG', org, count=1, endSubkey=':'+noSpaceLower(categ))
|
||||||
publish_log(zmq_name, 'CONTRIBUTION', {'org': org, 'categ': categ, 'action': action, 'epoch': nowSec }, channel=CHANNEL_LASTCONTRIB)
|
publish_log(zmq_name, 'CONTRIBUTION', {'org': org, 'categ': categ, 'action': action, 'epoch': nowSec }, channel=CHANNEL_LASTCONTRIB)
|
||||||
|
|
||||||
serv_redis_db.sadd('CONTRIB_ALL_ORG', org)
|
serv_redis_db.sadd('CONTRIB_ALL_ORG', org)
|
||||||
|
|
Loading…
Reference in New Issue