MCPcopy
hub / github.com/diffgram/diffgram / identify_user

Method identify_user

shared/database/event/event.py:363–390  ·  view source on GitHub ↗

user, class User DB object Expects to be run within a session Note already checking system mode uptop with "if settings.DIFFGRAM_SYSTEM_MODE == "sandbox"

(user)

Source from the content-addressed store, hash-verified

361
362 @staticmethod
363 def identify_user(user):
364 """
365 user, class User DB object
366
367 Expects to be run within a session
368
369 Note already checking system mode uptop with
370 "if settings.DIFFGRAM_SYSTEM_MODE == "sandbox"
371
372 """
373 # This is just for passing info about a user
374 # to system
375 if settings.DIFFGRAM_SYSTEM_MODE in ['testing', 'testing_e2e']:
376 return
377 try:
378 analytics.identify(user.member_id, {
379 'email': user.email,
380 'first_name': user.first_name,
381 'last_name': user.last_name,
382 'how_hear_about_us': user.how_hear_about_us,
383 'signup_role': user.signup_role,
384 'signup_demo': user.signup_demo,
385 'city': user.city,
386 'company': user.company_name
387 })
388 except:
389 print("Analytics error")
390 pass
391
392 @staticmethod
393 def track_user(

Callers 2

builder_enable_coreFunction · 0.80
user_new_coreFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected