def resend_backuped_reports():
    tm = app.get_state_item("telemetry", {})
    if tm not in "backup" or not tm['backup']:
        return False

    for report in tm['backup']:
        mp = MeasurementProtocol()
        for key, value in report.items():
            mp[key] = value
        mp.send(report['t'])

    # clean
    tm['backup'] = []
    app.set_state_item("telemetry", tm)
dataset/ETHPy150Open platformio/platformio/platformio/telemetry.py/resend_backuped_reports/swapped operands of `not in`