mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-05 23:54:19 +00:00
Optimized memory objects usage for status check endpoint
This commit is contained in:
parent
5c4d871bcd
commit
59d251bb77
|
@ -55,8 +55,7 @@ class CheckBackupStatus(Resource):
|
|||
backupStatusCheckCommand, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT
|
||||
)
|
||||
|
||||
backupProcessStatus = backupStatusCheckProcessDescriptor.communicate()[0]
|
||||
backupProcessStatus = backupProcessStatus.decode("utf-8")
|
||||
backupProcessStatus = backupStatusCheckProcessDescriptor.communicate()[0].decode("utf-8")
|
||||
|
||||
try:
|
||||
json.loads(backupProcessStatus)
|
||||
|
|
Loading…
Reference in a new issue