From 25dfe4115d44736696d9254ac0f5630b5eb56141 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 7 Mar 2022 18:02:30 -0500 Subject: [PATCH] Move ib data reset script into a new `scripts/` dir --- {snippets => scripts}/ib_data_reset.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) rename {snippets => scripts}/ib_data_reset.py (92%) diff --git a/snippets/ib_data_reset.py b/scripts/ib_data_reset.py similarity index 92% rename from snippets/ib_data_reset.py rename to scripts/ib_data_reset.py index a65321dc..3639d257 100644 --- a/snippets/ib_data_reset.py +++ b/scripts/ib_data_reset.py @@ -30,11 +30,13 @@ orig_win_id = t.find_focused().window # for tws win_names: list[str] = [ 'Interactive Brokers', # tws running in i3 - 'IB Gateway.', # gw running in i3 + 'IB Gateway', # gw running in i3 + # 'IB', # gw running in i3 (newer version?) ] for name in win_names: - results = t.find_named(name) + results = t.find_titled(name) + print(f'results for {name}: {results}') if results: con = results[0] print(f'Resetting data feed for {name}')