From 57d7b162577c87abdae2cd8a9645810cc131aba1 Mon Sep 17 00:00:00 2001 From: Trim21 Date: Sun, 17 Dec 2023 20:58:01 +0800 Subject: [PATCH] fix: remove usage of deprecated pydantic api --- rpc/timeline_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/timeline_service.py b/rpc/timeline_service.py index 8ddcb79..46965a5 100644 --- a/rpc/timeline_service.py +++ b/rpc/timeline_service.py @@ -97,7 +97,7 @@ def merge_previous_timeline( m.collect_rate = req.rate if should_update: - tl.memo = php.serialize(m.dict()) + tl.memo = php.serialize(m.model_dump()) session.add(tl) return