Skip to content

Commit 90a84e3

Browse files
committed
refactor if statement
1 parent bb6bad0 commit 90a84e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ee/cli/plugins/site_functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ def sitebackup(self, data):
618618
.format(data['site_name']), backup_path)
619619

620620
if data['currsitetype'] in ['html', 'php', 'proxy', 'mysql']:
621-
if data['pagespeed'] is True or data['old_pagespeed_status'] is True and not data['wp']:
621+
if (data['pagespeed'] is True or data['old_pagespeed_status'] is True) and not data['wp']:
622622
Log.info(self, "Backing up Webroot \t\t", end='')
623623
EEFileUtils.copyfiles(self, ee_site_webroot + '/htdocs', backup_path + '/htdocs')
624624
Log.info(self, "[" + Log.ENDC + "Done" + Log.OKBLUE + "]")
@@ -658,7 +658,7 @@ def sitebackup(self, data):
658658
Log.info(self, "[" + Log.ENDC + "Done" + Log.OKBLUE + "]")
659659
# move wp-config.php/ee-config.php to backup
660660
if data['currsitetype'] in ['mysql', 'proxy']:
661-
if data['pagespeed'] is True or data['old_pagespeed_status'] is True and not data['wp']:
661+
if (data['pagespeed'] is True or data['old_pagespeed_status'] is True) and not data['wp']:
662662
EEFileUtils.copyfile(self, configfiles[0], backup_path)
663663
else:
664664
EEFileUtils.mvfile(self, configfiles[0], backup_path)

0 commit comments

Comments
 (0)