Skip to content

Commit

Permalink
Fix: Osinfo dataclasses to dict serialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
8R0WNI3 committed Feb 4, 2025
1 parent 7f75ce7 commit 010ff95
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions osinfo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import dataclasses
import functools
import logging

Expand Down Expand Up @@ -136,10 +135,6 @@ async def get(self):
raise aiohttp.web.HTTPBadRequest(text=os_id)

return aiohttp.web.json_response(
data=[
dataclasses.asdict(
obj=release_info,
dict_factory=util.dict_serialisation,
) for release_info in release_infos
],
data=release_infos,
dumps=util.dict_to_json_factory,
)

0 comments on commit 010ff95

Please sign in to comment.