Skip to content

Commit 878b9a9

Browse files
authored
Merge pull request #18 from star-inc/rolling
v6.5.2-stable_RC1 from Rolling
2 parents 49736db + e63ded0 commit 878b9a9

File tree

3 files changed

+14
-25
lines changed

3 files changed

+14
-25
lines changed

libs/data.py

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -156,18 +156,14 @@ def _mdsShake(self, do, path, data=None):
156156
def _local_query(self, query_data):
157157
if type(query_data) is list:
158158
result = self.Data
159-
query_len = len(query_data)
160-
source_data = self.Data
159+
query_len = len(query_data) - 1
161160
for count, key in enumerate(query_data):
162-
if key in source_data:
163-
if count < (query_len - 1):
164-
if type(source_data.get(key)) is dict:
165-
source_data = source_data.get(key)
166-
else:
161+
if key in result:
162+
if count < query_len:
163+
if type(result.get(key)) is not dict:
167164
result = 1
168165
break
169-
else:
170-
result = source_data.get(key)
166+
result = result.get(key)
171167
else:
172168
result = 2
173169
break
@@ -244,13 +240,10 @@ def getData(self, path):
244240

245241
def getGroup(self, GroupID):
246242
Groups = self.getData(["Group"])
247-
if len(Groups) > 0:
248-
GroupIDs = [Group for Group in Groups]
249-
if GroupID not in GroupIDs:
250-
self.updateData(["Group", GroupID], self.GroupType)
251-
else:
243+
if GroupID not in Groups:
252244
self.updateData(["Group", GroupID], self.GroupType)
253-
return self.getData(["Group", GroupID])
245+
return self.GroupType
246+
return Groups.get(GroupID)
254247

255248
def getSEGroup(self, GroupID):
256249
GroupData = self.getGroup(GroupID)

libs/data_mds.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,14 @@ def query(query_data, null=None):
5050
try:
5151
if type(switch_data) is dict and type(query_data) is list:
5252
result = switch_data
53-
query_len = len(query_data)
54-
source_data = switch_data
53+
query_len = len(query_data) - 1
5554
for count, key in enumerate(query_data):
56-
if key in source_data:
57-
if count < (query_len - 1):
58-
if type(source_data.get(key)) is dict:
59-
source_data = source_data.get(key)
60-
else:
55+
if key in result:
56+
if count < query_len:
57+
if type(result.get(key)) is not dict:
6158
result = 1 #"unknown_type" + type(source_data.get(key))
6259
break
63-
else:
64-
result = source_data.get(key)
60+
result = result.get(key)
6561
else:
6662
result = 2 #"unknown_key"
6763
break

libs/yuuki.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Yuuki_Settings:
2727

2828
config = {
2929
"name": "Yuuki",
30-
"version": "v6.5.2",
30+
"version": "v6.5.2_RC1",
3131
"version_check": True,
3232
"project_url": "https://tinyurl.com/syb-yuuki",
3333
"man_page": "https://tinyurl.com/yuuki-manual",

0 commit comments

Comments
 (0)