|
@@ -99,13 +99,14 @@ def prev_compile():
|
|
|
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
|
|
|
+ if type(PREV_ARG['sync']) == type(u'str'):
|
|
|
+ PREV_ARG['sync'] = True if PREV_ARG['sync'].lower() == u'true' else False
|
|
|
+
|
|
|
+ if type(PREV_ARG['redownload']) == type(u'str'):
|
|
|
+ PREV_ARG['redownload'] = True if PREV_ARG['redownload'].lower() == u'true' else False
|
|
|
+
|
|
|
+ print(type(PREV_ARG['sync']), PREV_ARG['sync'])
|
|
|
+ print(type(PREV_ARG['redownload']), PREV_ARG['redownload'])
|
|
|
|
|
|
# 更新代码;
|
|
|
commands=None
|