WebHost: fix datapackage typo

This commit is contained in:
Fabian Dill 2022-08-11 00:58:08 +02:00 committed by Fabian Dill
parent 29e0975832
commit b989698740
2 changed files with 3 additions and 3 deletions

View File

@ -32,14 +32,14 @@ def room_info(room: UUID):
@api_endpoints.route('/datapackage')
@cache.cached()
def get_datapackge():
def get_datapackage():
from worlds import network_data_package
return network_data_package
@api_endpoints.route('/datapackage_version')
@cache.cached()
def get_datapackge_versions():
def get_datapackage_versions():
from worlds import network_data_package, AutoWorldRegister
version_package = {game: world.data_version for game, world in AutoWorldRegister.world_types.items()}
version_package["version"] = network_data_package["version"]

View File

@ -153,7 +153,7 @@ def discord():
@app.route('/datapackage')
@cache.cached()
def get_datapackge():
def get_datapackage():
"""A pretty print version of /api/datapackage"""
from worlds import network_data_package
import json