Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Commit

Permalink
1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Aethese authored Aug 4, 2021
1 parent ec46e15 commit 9fdacee
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def updateProgram(setting, onlineVer):
configjson = {}
configjson['config'] = [{
'sw-code': '',
'version': '1.4.0',
'version': '1.4.1',
'update-notifier': True,
'fname': False,
'show-button': True,
Expand Down Expand Up @@ -250,6 +250,7 @@ def changeFNameSetting():
else:
log.error('Couldn\'t get config name setting')
k = input(f'Your current setting is set to: {Fore.LIGHTGREEN_EX}{l}{Fore.RESET}. What do you want to change it to ("full" for full game names, "short" for shortened game names)? ')
k = k.lower()
if k == 'full' or k == 'f':
try:
with open('config.json', 'r') as jsonfile: # man i can use this anywhere lol
Expand All @@ -276,6 +277,7 @@ def changeFNameSetting():
def changeAutoUpdate():
print(f'Your current Auto Update setting is set to {Fore.LIGHTGREEN_EX}{autoupdate}{Fore.RESET}')
ask = input('What would you like to change it to? On or off? ')
ask = ask.lower()
if ask == 'on':
try:
with open('config.json', 'r') as jsonfile:
Expand Down Expand Up @@ -356,7 +358,7 @@ def changeAutoUpdate():
log.info('Friend code not set. Rerun the program and change your friend code to your friend code')
elif y == 'change' or y == 'c':
c = input('What is your new friend code (just type the numbers)? ')
b = input('Is "SW-{}" correct? '.format(c))
b = input(f'Is "SW-{c}" correct? ')
b = b.lower()
if b == 'yes' or b == 'y':
try:
Expand All @@ -367,7 +369,7 @@ def changeAutoUpdate():
with open('config.json', 'w') as jsonfile:
json.dump(jsonFile, jsonfile, indent=4)
sw = c
print('Friend code changed to SW-{}'.format(c))
print(f'Friend code changed to SW-{c}')
y = 'yes'
except Exception as error:
log.error(f'Couldn\'t change sw-code | {error}')
Expand Down

0 comments on commit 9fdacee

Please sign in to comment.