mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-11 08:48:06 +01:00
param should be json array as string
This commit is contained in:
parent
9b486d77fb
commit
7414e0eeae
1 changed files with 4 additions and 1 deletions
|
@ -36,6 +36,9 @@ def post(req, params):
|
|||
return json.dumps(jobj)
|
||||
|
||||
def query(req, ids):
|
||||
print(ids)
|
||||
ids = json.loads(ids)
|
||||
|
||||
idsLen = 0
|
||||
for id in ids: idsLen += len(id)
|
||||
|
||||
|
@ -95,7 +98,7 @@ def dosend(sock, bytes):
|
|||
|
||||
|
||||
def main():
|
||||
print(query(None, sys.argv[1:]))
|
||||
print(query(None, json.dumps(sys.argv[1:])))
|
||||
# Params = { 'data' : 'V2VkIE9jdCAxOCAwNjowNDo0OCBQRFQgMjAxNwo=' }
|
||||
# params = json.dumps(params)
|
||||
# print(post(None, params))
|
||||
|
|
Loading…
Add table
Reference in a new issue