From 1ae5fc9dc755fab7e399fbca3ce3a2050160bd26 Mon Sep 17 00:00:00 2001 From: Jeremiah K <17190268+jeremiah-k@users.noreply.github.com> Date: Thu, 8 Jun 2023 22:37:55 -0500 Subject: [PATCH] Making new function names uniform --- db_utils.py | 2 +- main.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/db_utils.py b/db_utils.py index ead6685..713a9e7 100644 --- a/db_utils.py +++ b/db_utils.py @@ -110,7 +110,7 @@ def save_shortname(meshtastic_id, shortname): ) conn.commit() -def update_shortname(nodes): +def update_shortnames(nodes): if nodes: for node in nodes.values(): user = node.get("user") diff --git a/main.py b/main.py index af1b2b7..6b976b5 100644 --- a/main.py +++ b/main.py @@ -9,7 +9,7 @@ from nio import ( ) from pubsub import pub from typing import List -from db_utils import initialize_database, update_longnames, update_shortname +from db_utils import initialize_database, update_longnames, update_shortnames from matrix_utils import ( connect_matrix, join_matrix_room, @@ -73,7 +73,7 @@ async def main(): try: # Update longnames & shortnames update_longnames(meshtastic_interface.nodes) - update_shortname(meshtastic_interface.nodes) + update_shortnames(meshtastic_interface.nodes) matrix_logger.info("Syncing with server...") await matrix_client.sync_forever(timeout=30000)