added the support of historique functionnality into the client
This commit is contained in:
parent
8f389b5137
commit
573ae6ef9a
1 changed files with 17 additions and 9 deletions
|
@ -21,6 +21,14 @@ def send_request(apiurl, headers, method="GET"):
|
|||
|
||||
data = req.json()
|
||||
|
||||
match apiurl.split('/')[-1]:
|
||||
case "historique":
|
||||
for element in data:
|
||||
if element['query'] == '':
|
||||
print(f"id : {element['id']}, method : {element['method']}, section : {element['section']}")
|
||||
else:
|
||||
print(f"id : {element['id']}, method : {element['method']}, query : {element['query']}, section : {element['section']}")
|
||||
case other:
|
||||
for element in data:
|
||||
try:
|
||||
print("")
|
||||
|
|
Loading…
Reference in a new issue