Revision cc1fc3ed snf-astakos-app/astakos/im/queue/userevent.py

b/snf-astakos-app/astakos/im/queue/userevent.py
39 39

  
40 40
class UserEvent(object):
41 41
    def __init__(self, client, user, eventType, details={}):
42
        self.eventVersion = '1.0'
42
        self.eventVersion = '1'
43 43
        self.occurredMillis = int(time() * 1000)
44 44
        self.receivedMillis = self.occurredMillis
45 45
        self.clientID = client
......
50 50
        self.details = details
51 51
        hash = sha1()
52 52
        hash.update(json.dumps([client, self.userID, self.is_active, self.role,
53
                                self.eventType, self.details, random()]))
53
                                self.eventType, self.details, self.occurredMillis]))
54 54
        self.id = hash.hexdigest()
55 55
    
56 56
    def format(self):

Also available in: Unified diff