mirror of https://github.com/MISP/misp-dashboard
update: add a user_login at each contribution (Usefull to compute
contrib/login).pull/8/head
parent
1da5cc61ea
commit
afef7ed420
|
@ -142,6 +142,9 @@ def handleContribution(zmq_name, org, contribType, categ, action, pntMultiplier=
|
||||||
nowSec = int(time.time())
|
nowSec = int(time.time())
|
||||||
pnts_to_add = DEFAULT_PNTS_REWARD
|
pnts_to_add = DEFAULT_PNTS_REWARD
|
||||||
|
|
||||||
|
# if there is a contribution, there is a login (even if ti comes from the API)
|
||||||
|
users_helper.add_user_login(timestamp, org)
|
||||||
|
|
||||||
# is a valid contribution
|
# is a valid contribution
|
||||||
if categ is not None:
|
if categ is not None:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue