Skip to content

Commit

Permalink
Fixes #829 - Add CID field to feedback link in LogonDetails.exe (#835)
Browse files Browse the repository at this point in the history
* Add CID field to feedback link

* fix typo

---------

Co-authored-by: luke11brown <[email protected]>
  • Loading branch information
BenWalker01 and luke11brown committed Aug 25, 2024
1 parent 272e1c6 commit 618c9ce
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
11 changes: 11 additions & 0 deletions UK/LogonDetails.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 618c9ce

Please sign in to comment.