realign layout

feature-admin-split
Darksider3 5 years ago
parent 43c7636920
commit 04d95c2d08

@ -56,12 +56,12 @@ print(t.draw())
print("ID: {}; Username: \"{}\"; Mail: {}; Name: \"{}\"; Registered: {}; Status: {}".format( print("ID: {}; Username: \"{}\"; Mail: {}; Name: \"{}\"; Registered: {}; Status: {}".format(
user["id"], user["username"], user["email"], user["name"], user["timestamp"], user["status"] user["id"], user["username"], user["email"], user["name"], user["timestamp"], user["status"]
))""" ))"""
ret += "ID %-1s| Username %-5s| Mail %-20s| Name %-17s| Registered %-8s| State |\n" % ( ret += "ID %-1s| Username %-5s| Mail %-20s| Name %-17s| Registered %-8s | State |\n" % (
" ", " ", " ", " ", " " " ", " ", " ", " ", " "
) )
ret += 101*"-" + "\n" ret += 102 * "-" + "\n"
for user in fetch: for user in fetch:
ret += "%-4i| %-14s| %-25s| %-22s| %-8s| %-6i|\n" % ( ret += "%-4i| %-14s| %-25s| %-22s| %-8s | %-5i |\n" % (
user["id"], user["username"], user["email"], user["name"], user["timestamp"], user["status"] user["id"], user["username"], user["email"], user["name"], user["timestamp"], user["status"]
) )
if CFG.args.file != "stdout": if CFG.args.file != "stdout":

Loading…
Cancel
Save