mirror of
https://github.com/aljazceru/Image-Quote-Generator.git
synced 2025-12-19 23:14:21 +01:00
getting it to git
This commit is contained in:
9
json_handler.py
Normal file
9
json_handler.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import json
|
||||
|
||||
|
||||
def get_data(json_file):
|
||||
with open(f'{json_file}', 'r', encoding='utf-8') as f:
|
||||
jsonData = json.load(f)
|
||||
verses: str = jsonData['verses']
|
||||
refs: str = jsonData['references']
|
||||
return verses, refs
|
||||
Reference in New Issue
Block a user