Update index.py

This commit is contained in:
midoks
2023-08-24 18:48:07 +08:00
parent 504a618eb1
commit 45cc0159af
+5 -2
View File
@@ -50,13 +50,16 @@ def getArgs():
if args_len == 1:
t = args[0].strip('{').strip('}')
t = t.split(':')
if t.strip() == '':
tmp = []
else:
t = t.split(':', 1)
tmp[t[0]] = t[1]
tmp[t[0]] = t[1]
elif args_len > 1:
for i in range(len(args)):
t = args[i].split(':')
tmp[t[0]] = t[1]
return tmp