fixed readlines ?

This commit is contained in:
piair 2024-04-26 14:41:00 +02:00
parent b7a89b56d0
commit ac22814605

View File

@ -83,8 +83,8 @@ class Config:
def has_been_updated(self): def has_been_updated(self):
with open('/app/MsRewards-Reborn/version', "r") as inFile: with open('/app/MsRewards-Reborn/version', "r") as inFile:
if self.version != inFile.readline(): if self.version != inFile.readlines()[0]:
self.version = inFile.readline() self.version = inFile.readlines()[0]
with open('/app/MsRewards-Reborn/user_data/version', "w") as outFile: with open('/app/MsRewards-Reborn/user_data/version', "w") as outFile:
outFile.write(self.version) outFile.write(self.version)
return True return True