Skip to content

Commit

Permalink
Fix #84
Browse files Browse the repository at this point in the history
  • Loading branch information
a1ex4 authored May 14, 2024
1 parent a543d9c commit 2c57dd7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ def get_all_titles():
return sorted(games_info, key=lambda x: ("title_id_name" not in x, x.get("title_id_name", None), x['app_id']))

@app.route('/api/get_game/<int:id>')
@access_required('shop')
# TODO
# @access_required('shop')
def serve_game(id):
filepath = db.session.query(Files.filepath).filter_by(id=id).first()[0]
filedir, filename = os.path.split(filepath)
Expand Down Expand Up @@ -273,4 +274,4 @@ def get_library_status(title_id):
# title_files = get_all_title_files(title_id)
# available_versions = get_all_existing_versions(title_id)
# # get_library_status(title_id)
# print(json.dumps(get_library_status(title_id), indent=4))
# print(json.dumps(get_library_status(title_id), indent=4))

0 comments on commit 2c57dd7

Please sign in to comment.