diff --git a/config/config.cfg.default b/config/config.cfg.default index 8bfee3e..51cf3bc 100644 --- a/config/config.cfg.default +++ b/config/config.cfg.default @@ -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" ] default_pnts_per_contribution = 1 # 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"] [Log] diff --git a/zmq_subscriber.py b/zmq_subscriber.py index 5b6ca3d..1947d7c 100755 --- a/zmq_subscriber.py +++ b/zmq_subscriber.py @@ -149,7 +149,7 @@ def handleContribution(zmq_name, org, contribType, categ, action, pntMultiplier= 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 - 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) serv_redis_db.sadd('CONTRIB_ALL_ORG', org)