'Refactored by Sourcery'

This commit is contained in:
Sourcery AI 2020-10-18 02:19:44 +00:00
parent b2c095bbfe
commit bcf301ff04

View file

@ -91,39 +91,24 @@ def remotegetblock():
if os.path.isfile('pyblocksettingsClock.conf') or os.path.isfile('pyblocksettingsClock.conf'): # Check if the file 'bclock.conf' is in the same folder
settingsv = pickle.load(open("pyblocksettingsClock.conf", "rb")) # Load the file 'bclock.conf'
settingsClock = settingsv # Copy the variable pathv to 'path'
b = rpc('getblockcount')
c = str(b)
if c > a:
output = render(str(c), colors=[settingsClock['colorA'], settingsClock['colorB']], align='center')
print("\a" + output)
t.sleep(10)
break
elif c == a:
output = render(str(c), colors=[settingsClock['colorA'], settingsClock['colorB']], align='center')
print(output)
t.sleep(10)
clear()
closed()
else:
break
else:
settingsClock = {"gradient":"", "design":"block", "colorA":"green", "colorB":"yellow"}
pickle.dump(settingsClock, open("pyblocksettingsClock.conf", "wb"))
b = rpc('getblockcount')
c = str(b)
if c > a:
output = render(str(c), colors=[settingsClock['colorA'], settingsClock['colorB']], align='center')
print("\a" + output)
t.sleep(10)
break
elif c == a:
output = render(str(c), colors=[settingsClock['colorA'], settingsClock['colorB']], align='center')
print(output)
t.sleep(10)
clear()
closed()
else:
break
b = rpc('getblockcount')
c = str(b)
if c > a:
output = render(str(c), colors=[settingsClock['colorA'], settingsClock['colorB']], align='center')
print("\a" + output)
t.sleep(10)
break
elif c == a:
output = render(str(c), colors=[settingsClock['colorA'], settingsClock['colorB']], align='center')
print(output)
t.sleep(10)
clear()
closed()
else:
break
def countdownblockConn():
b = rpc('getblockcount')