From afef7ed4202be7c371cdc04b0176a6ffa7900a1b Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Fri, 17 Nov 2017 16:05:00 +0100 Subject: [PATCH] update: add a user_login at each contribution (Usefull to compute contrib/login). --- zmq_subscriber.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zmq_subscriber.py b/zmq_subscriber.py index 8e532e7..b4ee41e 100755 --- a/zmq_subscriber.py +++ b/zmq_subscriber.py @@ -142,6 +142,9 @@ def handleContribution(zmq_name, org, contribType, categ, action, pntMultiplier= nowSec = int(time.time()) 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 if categ is not None: try: