|
@@ -98,6 +98,15 @@ def prev_compile():
|
|
print("prev args is empty")
|
|
print("prev args is empty")
|
|
return False
|
|
return False
|
|
|
|
|
|
|
|
+ # Python无法将字符串'false'转为布尔类型;
|
|
|
|
+ print(type(PREV_ARG['sync']))
|
|
|
|
+ print(type(PREV_ARG['redownload']))
|
|
|
|
+ if type(PREV_ARG['sync']) == type('str'):
|
|
|
|
+ PREV_ARG['sync'] = True if PREV_ARG['sync'].lower() == 'true' else False
|
|
|
|
+
|
|
|
|
+ if type(PREV_ARG['redownload']) == type('str'):
|
|
|
|
+ PREV_ARG['redownload'] = True if PREV_ARG['redownload'].lower() == 'true' else False
|
|
|
|
+
|
|
# 更新代码;
|
|
# 更新代码;
|
|
commands=None
|
|
commands=None
|
|
if PREV_ARG['sync']:
|
|
if PREV_ARG['sync']:
|