From 1df4b8c72bc2bbd68fea01d202ad86c7a4ec736b Mon Sep 17 00:00:00 2001 From: Ole Johan <157277429+OJStuff@users.noreply.github.com> Date: Wed, 20 Nov 2024 20:13:03 +0100 Subject: [PATCH] Update getdmridsla.py Changed CSV import character encoding --- getdmridsla.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/getdmridsla.py b/getdmridsla.py index 99bc469..570e2ef 100644 --- a/getdmridsla.py +++ b/getdmridsla.py @@ -1,7 +1,7 @@ """ -Environment: Thonny IDE v4.1.4 and builtin Python v3.10.11. +Environment: Thonny IDE v4.1.4 and builtin Python v3.12.7. Copyright: Released under CC BY-SA 4.0 -Author: GitHub/OJStuff, June 23, 2024, v1.0 +Author: GitHub/OJStuff, November 20, 2024, v1.1 """ import sys @@ -457,7 +457,7 @@ def dmrUpdateLA(data: list) -> list[dict]: # Update getdmrids.py -> LA version dataLA: list = [] if fileExist(fileLA): - dataLA = csvLoad(fileLA, "rt", "", "ansi", ";") + dataLA = csvLoad(fileLA, "rt", "", "latin-1", ";") print(f'Updating IDs from "{fileLA}"') for x in data: ccode = int(str(x["radio_id"])[:3])