def get_telemetry_data(request, indent=None):
 admin_user = User.objects.first()
 data_dict = {'daily_data': get_daily_data(now()), 'apps': settings.INSTALLED_APPS, 'debug': settings.DEBUG, 'host': (request.get_host() if request else None), 'key': get_installation_key(), 'machine': platform.machine(), 'admin_user': (admin_user.email if admin_user else None), 'last_login': (admin_user.last_login if admin_user else None), 'platform': platform.platform(), 'python_version': sys.version, 'shuup_version': shuup.__version__}
 return safe_json(data_dict, indent)

def get_telemetry_data ( request , indent = None ) : admin_user = User . objects . first ( ) data_dict = { 'daily_data' : get_daily_data ( now ( ) ) , 'apps' : settings . INSTALLED_APPS , 'debug' : settings . DEBUG , 'host' : ( request . get_host ( ) if request else None ) , 'key' : get_installation_key ( ) , 'machine' : platform . machine ( ) , 'admin_user' : ( admin_user . email if admin_user else None ) , 'last_login' : ( admin_user . last_login if admin_user else None ) , 'platform' : platform . platform ( ) , 'python_version' : sys . version , 'shuup_version' : shuup . __version__ } return safe_json ( data_dict , indent )
get the telemetry data that would be sent .