From 618c9ce016676dd30431122b3ed2bc746cc8f11e Mon Sep 17 00:00:00 2001 From: Ben Walker <146777065+BenWalker01@users.noreply.github.com> Date: Sun, 25 Aug 2024 09:04:17 +0100 Subject: [PATCH] Fixes #829 - Add CID field to feedback link in LogonDetails.exe (#835) * Add CID field to feedback link * fix typo --------- Co-authored-by: luke11brown <13762210+luke11brown@users.noreply.github.com> --- .github/CHANGELOG.md | 1 + UK/LogonDetails.py | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index f891909aa..6de07a2c5 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -4,6 +4,7 @@ 3. Bug - Fixed automatic logon details entry failing if non-uk sector file is present - thanks to @kristiankunc (Kristián Kunc) 4. Bug - Fix squawk colors on SMR profiles - thanks to @kristiankunc (Kristián Kunc) 5. Enhancement - Added VRPs to TopSky maps - thanks to @SamLefevre (Samuel Lefevre) +6. Enhancement - Add CID to feedback link in LogonDetails.py - thanks to @BenWalker01 (Ben Walker) # Changes from release 2024/07 to 2024/08 1. Enhancement - CPDLC Auto open settings window - thanks to @kye-taylor (Kye Taylor) diff --git a/UK/LogonDetails.py b/UK/LogonDetails.py index 895e593a2..7f02c2901 100644 --- a/UK/LogonDetails.py +++ b/UK/LogonDetails.py @@ -105,5 +105,16 @@ writeFile = open(file_path, "w") writeFile.write(line) +# Adds CID field to feedback link + + elif file == "Profiles.txt": + file_path = os.path.join(root,file) + with open(file_path,'r') as f: + line = f.read() + line = line.replace("Submit feedback at vats.im/atcfb",f"Submit feedback at vatsim.uk/atcfb?cid={CID}") + with open(file_path,'w') as out_f: + out_f.write(line) + + print("Detail entry process complete") time.sleep(1.5)