def send_to_remote(): db2 = Database() db2.configure() if Config.version_notification: # Get any new version messages while we are # in a seperate thread. v.get_version(db=db2) if te.have_permission(db=db2): # And send the telemetry data. te.send(db=db2, cmd=commands, version=__version__)
def remote(): db2 = Database() db2.configure() te = Telemetry() if te.have_permission(db=db2): te.send(db=db2, cmd=cmd, version=__version__)