Update yuuki.py

This commit is contained in:
SuperSonic 2019-09-01 03:21:09 +08:00 committed by GitHub
parent 1c1fa3b096
commit c0c03c09f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,10 +65,6 @@ class Yuuki:
else:
self.YuukiVariable = {}
self.YuukiVariable["sync"] = self.data.Data
self.YuukiVariable["Power"] = True
self.YuukiVariable["SecurityService"] = self.YuukiConfigs["SecurityService"]
# Initialize
(self.client, self.listen) = self.Connect.connect()
@ -79,11 +75,15 @@ class Yuuki:
self.MyMID = self.client.getProfile().mid
self.revision = self.client.getLastOpRevision()
self.YuukiVariable["GroupJoined"] = self.client.getGroupIdsJoined()
if len(self.data.getData("LimitInfo")) != 2:
self.data.updateData(self.data.Data, "LimitInfo", self.data.LimitType)
self.YuukiVariable["Power"] = True
self.YuukiVariable["sync"] = self.data.Data
self.YuukiVariable["GroupJoined"] = self.client.getGroupIdsJoined()
self.YuukiVariable["SecurityService"] = self.YuukiConfigs["SecurityService"]
global _
_ = self.i18n._