Closed StevenCTimm closed 1 year ago
query = ( "accounts(username: \\\"{}\\\") {{ " " projectId, " " repoName, " " repoType, " " currentAlloc, " " usedAlloc, " " users {{ " " uid, " " name, " " firstname, " " lastname, " " middlename, " " userAlloc, " " userAllocPct, " " usedAlloc " " }} " "}}" ).format(username) # Remove whitespace to make more readable 105d103 < print(query)
query = ( "accounts(username: \\\"{}\\\") {{ " " projectId, " " repoName, " " repoType, " " currentAlloc, " " usedAlloc, " " users {{ " " uid, " " name, " " firstname, " " lastname, " " middlename, " " userAlloc, " " userAllocPct, " " usedAlloc " " }} " "}}" ).format(username) # Remove whitespace to make more readable
105d103 < print(query)
[root@hepcsvc03 util]# diff newt.py newt.py.1.7.4 83,103c83,102 < query = ('accounts(username: "{}") {{ projectId,repoName,repoType,currentAlloc,usedAlloc,users {{ uid,name,firstname,lastname,middlename,userAlloc,userAllocPct,usedAlloc}} }}').format(username) < # query = < # "accounts(username: \\"{}\\") {{ " < # " projectId, " < # " repoName, " < # " repoType, " < # " currentAlloc, " < # " usedAlloc, " < # " users {{ " < # " uid, " < # " name, " < # " firstname, " < # " lastname, " < # " middlename, " < # " userAlloc, " < # " userAllocPct, " < ## " usedAlloc " < # " }} " < # "}}" < # ).format(username) < # Remove whitespace to make more readable