mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 06:16:08 +01:00
bug fix: see git file changes
This commit is contained in:
@@ -683,6 +683,7 @@ class IncJobs(multi.Thread):
|
|||||||
except BaseException as msg:
|
except BaseException as msg:
|
||||||
logging.statusWriter(self.statusPath,
|
logging.statusWriter(self.statusPath,
|
||||||
'Failed to delete database: %s. [IncJobs.backupDatabases.456]' % str(msg), 1)
|
'Failed to delete database: %s. [IncJobs.backupDatabases.456]' % str(msg), 1)
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
except BaseException as msg:
|
except BaseException as msg:
|
||||||
logging.statusWriter(self.statusPath, '%s. [IncJobs.backupDatabases.269][5009]' % str(msg), 1)
|
logging.statusWriter(self.statusPath, '%s. [IncJobs.backupDatabases.269][5009]' % str(msg), 1)
|
||||||
|
|||||||
@@ -862,9 +862,7 @@
|
|||||||
<div class="col-sm-10" style="margin-bottom: 2%;">
|
<div class="col-sm-10" style="margin-bottom: 2%;">
|
||||||
<select ng-change="fetchChangesInFile()"
|
<select ng-change="fetchChangesInFile()"
|
||||||
ng-model="$parent.changeFile" class="form-control">
|
ng-model="$parent.changeFile" class="form-control">
|
||||||
<option ng-repeat="file in files">
|
<option ng-repeat="file in files">{$ file $}</option>
|
||||||
{$ file $}
|
|
||||||
</option>
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -3895,7 +3895,13 @@ StrictHostKeyChecking no
|
|||||||
command = 'git -C %s diff-tree --no-commit-id --name-only -r %s' % (self.folder, self.commit)
|
command = 'git -C %s diff-tree --no-commit-id --name-only -r %s' % (self.folder, self.commit)
|
||||||
files = ProcessUtilities.outputExecutioner(command, self.externalApp).split('\n')
|
files = ProcessUtilities.outputExecutioner(command, self.externalApp).split('\n')
|
||||||
|
|
||||||
data_ret = {'status': 1, 'files': files}
|
FinalFiles = []
|
||||||
|
|
||||||
|
for items in files:
|
||||||
|
if items != '':
|
||||||
|
FinalFiles.append(items.rstrip('\n').lstrip('\n'))
|
||||||
|
|
||||||
|
data_ret = {'status': 1, 'files': FinalFiles}
|
||||||
json_data = json.dumps(data_ret)
|
json_data = json.dumps(data_ret)
|
||||||
return HttpResponse(json_data)
|
return HttpResponse(json_data)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user