From 04d33f4ecd4117cdc125f67a65e1ecf867e1b033 Mon Sep 17 00:00:00 2001 From: piair Date: Fri, 26 Apr 2024 14:45:41 +0200 Subject: [PATCH] fixed readlines ? --- modules/Classes/Config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/Classes/Config.py b/modules/Classes/Config.py index 4b8a710..2e4b98b 100644 --- a/modules/Classes/Config.py +++ b/modules/Classes/Config.py @@ -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