bug fix: phpmyadmin

This commit is contained in:
Usman Nasir
2020-03-27 11:07:00 +05:00
parent a78a557d5a
commit 2dbe7bece7
3 changed files with 14 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
import subprocess
import json
command = 'postqueue -j'
result = subprocess.check_output(command, shell=True).decode().split('\n')
result = result[0]
data = json.loads(result)
print(data['queue_name'])