From fbbd39570b0551ac268494f8d9a3461f008973c5 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Thu, 2 Apr 2020 21:58:08 +0500 Subject: [PATCH] feature change: seprate commands using \n --- .../templates/websiteFunctions/manageGIT.html | 2 +- websiteFunctions/website.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/websiteFunctions/templates/websiteFunctions/manageGIT.html b/websiteFunctions/templates/websiteFunctions/manageGIT.html index 459cff042..27ba5e006 100755 --- a/websiteFunctions/templates/websiteFunctions/manageGIT.html +++ b/websiteFunctions/templates/websiteFunctions/manageGIT.html @@ -235,7 +235,7 @@
diff --git a/websiteFunctions/website.py b/websiteFunctions/website.py index 08fe0ad7e..0b1f89663 100755 --- a/websiteFunctions/website.py +++ b/websiteFunctions/website.py @@ -3402,8 +3402,8 @@ StrictHostKeyChecking no GitLogs(owner=self.masterWebsite, type='INFO', message='Running commands after successful git commit..').save() - if self.commands.find(',') > -1: - commands = self.commands.split(',') + if self.commands.find('\n') > -1: + commands = self.commands.split('\n') for command in commands: GitLogs(owner=self.masterWebsite, type='INFO', @@ -4120,8 +4120,8 @@ StrictHostKeyChecking no GitLogs(owner=self.web, type='INFO', message='Running commands after successful git commit..').save() - if gitConf['commands'].find(',') > -1: - commands = gitConf['commands'].split(',') + if gitConf['commands'].find('\n') > -1: + commands = gitConf['commands'].split('\n') for command in commands: GitLogs(owner=self.web, type='INFO',