Skip to content

Commit

Permalink
Update update.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntek authored Sep 21, 2017
1 parent 86fffd2 commit 4bd9545
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions update.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ def down_thread(url, data_list):
# 反馈百分比进度
@app.route('/admin/update/progress', methods=['POST'])
def update_progress():
if progress == 0: progress = 72
progres = '%.2f' % progress
progres = progress
if progres == 0: progres = 72
progres = '%.2f' % progres
return json.dumps(dict(result=progres))

# 检查项目
Expand Down

0 comments on commit 4bd9545

Please sign in to comment.