Skip to content

Commit be77b5c

Browse files
committed
Changed GPS location button
Change the name of the button to "Get Location". Also removed the "Unknown Location" string because people are idiots and can't learn.
1 parent a502b45 commit be77b5c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

aprsd_webchat_extension/cmds/webchat.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,14 @@
6060

6161

6262
def signal_handler(sig, frame):
63-
click.echo("signal_handler: called")
64-
LOG.info(
63+
LOG.warning(
6564
f"Ctrl+C, Sending all threads({len(threads.APRSDThreadList())}) exit! "
6665
f"Can take up to 10 seconds {datetime.datetime.now()}",
6766
)
67+
stats.stats_collector.stop_all()
6868
threads.APRSDThreadList().stop_all()
6969
if "subprocess" not in str(frame):
7070
time.sleep(1.5)
71-
stats.stats_collector.collect()
7271
LOG.info("Telling flask to bail.")
7372
signal.signal(signal.SIGTERM, sys.exit(0))
7473

aprsd_webchat_extension/web/chat/static/js/send-message.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ function create_callsign_tab_content(callsign, active=false) {
333333
active_str = '';
334334
}
335335

336-
location_str = "Unknown Location"
336+
location_str = ""
337337
if (callsign in callsign_location) {
338338
location_str = build_location_string_small(callsign_location[callsign]);
339339
location_class = '';
@@ -346,7 +346,7 @@ function create_callsign_tab_content(callsign, active=false) {
346346
item_html += '<div class="row" style="padding-top:4px;padding-bottom:4px;background-color:#aaaaaa;margin:0px;">';
347347
item_html += '<div class="d-flex col-md-10 justify-content-left" style="padding:0px;margin:0px;">';
348348
item_html += '<button onclick="call_callsign_location(\''+callsign+'\');" style="margin-left:2px;padding: 0px 4px 0px 4px;font-size: .9rem" type="button" class="btn btn-primary">';
349-
item_html += '<span id="'+location_id+'Spinner" class="d-none spinner-border spinner-border-sm" role="status" aria-hidden="true" style="font-size: .9rem"></span>Update</button>';
349+
item_html += '<span id="'+location_id+'Spinner" class="d-none spinner-border spinner-border-sm" role="status" aria-hidden="true" style="font-size: .9rem"></span>Get Location</button>';
350350
item_html += '&nbsp;<span id="'+location_id+'" style="font-size: .9rem">'+location_str+'</span></div>';
351351
item_html += '</div>';
352352
item_html += '<div class="speech-wrapper" id="'+wrapper_id+'"></div>';

0 commit comments

Comments
 (0)