Skip to content

Commit

Permalink
fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Neagu committed Oct 30, 2024
1 parent 2a9b6bd commit d7a8ab9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from pathlib import Path

import msgpack # type: ignore[import-untyped]
import umsgpack # type: ignore[import-untyped]
from models_library.products import ProductName
from models_library.services import ServiceKey, ServiceVersion
from models_library.user_preferences import PreferenceName
Expand Down Expand Up @@ -48,7 +48,7 @@ async def save_preferences(
preference_name=_get_db_preference_name(
preference_class.get_preference_name(), service_version
),
payload=msgpack.packb(preference.to_db()),
payload=umsgpack.packb(preference.to_db()),
)


Expand All @@ -73,5 +73,5 @@ async def load_preferences(
if payload is None:
return

preference = parse_obj_as(preference_class, msgpack.unpackb(payload))
preference = parse_obj_as(preference_class, umsgpack.unpackb(payload))
await dir_from_bytes(preference.value, user_preferences_path)

0 comments on commit d7a8ab9

Please sign in to comment.