fixed readlines ?

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

View File

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