Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dssecret committed Dec 7, 2023
1 parent bad9932 commit 5bf3af8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/api/items/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

from flask import jsonify
from tornium_commons import rds
from tornium_commons.models import Item

Expand All @@ -38,4 +39,4 @@ def item_name_map(*args, **kwargs):
redis_client.hset("tornium:items:name-map", mapping=torn_items)
redis_client.expire("tornium:items:name-map", 3600)

return {"items": torn_items}, 200, api_ratelimit_response(key)
return jsonify({"items": torn_items}), 200, api_ratelimit_response(key)

0 comments on commit 5bf3af8

Please sign in to comment.