def export_toc():
    """
	Exports the TOC to a JSON file.
	"""
    toc = get_toc()
    with open(SEFARIA_EXPORT_PATH + "/table_of_contents.json", "w") as f:
        f.write(make_json(toc).encode('utf-8'))
Exemple #2
0
def export_toc():
	"""
	Exports the TOC to a JSON file.
	"""
	toc = get_toc()
	with open(SEFARIA_DATA_PATH + "/export/table_of_contents.json", "w") as f:
		f.write(make_json(toc))
def toc(request):
    return {"toc": get_toc()}
Exemple #4
0
def toc(request):
    return {"toc": get_toc()}