From 6413f621723bc4e71b00486f8743fc97e4f38c46 Mon Sep 17 00:00:00 2001 From: SuperSonic Date: Sat, 24 Aug 2019 23:42:58 +0800 Subject: [PATCH] Fix Data --- libs/data.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/libs/data.py b/libs/data.py index 082cbbd..a621c86 100644 --- a/libs/data.py +++ b/libs/data.py @@ -20,7 +20,6 @@ class Yuuki_Data: } self.GroupType = { - "ID":"", "SEGroup":None, "Ext_Admin":[] } @@ -118,17 +117,14 @@ class Yuuki_Data: def getData(self, Type): return self.Data[Type] - def getDataGroupID(self, DataGroup): - return DataGroup["ID"] - def getGroup(self, GroupID): Groups = self.getData("Group") if len(Groups) > 0: - GroupIDs = [self.getDataGroupID(Group) for Group in Groups] + GroupIDs = [Group for Group in Groups] if GroupID not in GroupIDs: - Groups[GroupID] = self.DataType["Group"] + Groups[GroupID] = self.GroupType else: - Groups[GroupID] = self.DataType["Group"] + Groups[GroupID] = self.GroupType return Groups[GroupID] def getSEGroup(self, GroupID):