Omnibus commited on
Commit
4ec3536
1 Parent(s): f1cdf2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -10
app.py CHANGED
@@ -24,16 +24,7 @@ def query2(fetch_url):
24
 
25
  response = requests.get(API_URL2)
26
  dictionary=response.json()
27
- #json_object = json.dumps(dictionary, indent=4)
28
- # Writing to sample.json
29
- #json_object=json.load(dictionary)
30
- with open("sample.json", "w", encoding="utf-8") as outfile:
31
- #json.dumps(response_dict, indent=4, sort_keys=True)
32
-
33
- json.dump(dictionary, outfile, ensure_ascii=False)
34
-
35
- #outfile.write(dictionary)
36
- return "sample.json"
37
 
38
  def find_fn(inp,out_json):
39
  print(out_json[1])
 
24
 
25
  response = requests.get(API_URL2)
26
  dictionary=response.json()
27
+ return dictionary
 
 
 
 
 
 
 
 
 
28
 
29
  def find_fn(inp,out_json):
30
  print(out_json[1])