Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
jgstew committed Feb 27, 2024
1 parent 6af60e2 commit a1440a9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/session_relevance_from_file_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
requires `besapi`, install with command `pip install besapi`
"""

import json

import besapi
Expand All @@ -23,13 +24,15 @@ def main():

result = bes_conn.post(bes_conn.url("query"), data)

print(result)
if __debug__:
print(result)

json_result = json.loads(str(result))

json_string = json.dumps(json_result, indent=2)

print(json_string)
if __debug__:
print(json_string)

with open(
"examples/session_relevance_query_from_file_output.json", "w"
Expand Down

0 comments on commit a1440a9

Please sign in to comment.