mirror of
https://github.com/tonytins/citylimits.git
synced 2025-03-15 12:21:22 +00:00
Renamed news_outlets_path to full_path
This commit is contained in:
parent
65cc08fab6
commit
40e68bb7e5
1 changed files with 3 additions and 3 deletions
|
@ -2,9 +2,9 @@ extends Node
|
|||
|
||||
func key_value(json_path, json_file, key, is_dictionary = false):
|
||||
var file = File.new()
|
||||
var news_outlets_path = str(json_path + json_file);
|
||||
if file.file_exists(news_outlets_path):
|
||||
file.open(news_outlets_path, File.READ)
|
||||
var full_path = str(json_path + json_file);
|
||||
if file.file_exists(full_path):
|
||||
file.open(full_path, File.READ)
|
||||
var result = parse_json(file.get_as_text())
|
||||
if is_dictionary == true:
|
||||
result.clear()
|
||||
|
|
Loading…
Add table
Reference in a new issue