From 95617d422d0e48d721915952f8ed4092d855ca1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E5=89=8D=E6=98=8E?= <909355014@qq.com> Date: Fri, 24 Jun 2022 01:06:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/develop/tasks.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/develop/tasks.py b/apps/develop/tasks.py index 89207be3..5157fa53 100755 --- a/apps/develop/tasks.py +++ b/apps/develop/tasks.py @@ -25,15 +25,15 @@ def backup_database(): @shared_task def reload_server_git(): command = 'bash {}/git_server.sh'.format(SH_PATH) - completed = subprocess.run(command, shell=True, capture_output=True, text=True) - return completed + subprocess.run(command, shell=True, capture_output=True, text=True) + # return completed @shared_task def reload_web_git(): command = 'bash {}/git_web.sh'.format(SH_PATH) - completed = subprocess.run(command, shell=True, capture_output=True, text=True) - return completed + subprocess.run(command, shell=True, capture_output=True, text=True) + # return completed @shared_task