From bf130d1da0bda9164e7398423c089da447d0844b Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Fri, 22 Jan 2021 20:05:28 +0100 Subject: [PATCH] Change the function name in genbackend.py --- pylib/tools/genbackend.py | 2 +- qt/aqt/mediasrv.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pylib/tools/genbackend.py b/pylib/tools/genbackend.py index e2ad3ced2..4a2c75e06 100755 --- a/pylib/tools/genbackend.py +++ b/pylib/tools/genbackend.py @@ -34,7 +34,7 @@ LABEL_REPEATED = 3 # messages we don't want to unroll in codegen SKIP_UNROLL_INPUT = {"TranslateString"} -SKIP_DECODE = {"Graphs", "GraphsPreferences"} +SKIP_DECODE = {"Graphs", "GetGraphsPreferences"} def python_type(field): diff --git a/qt/aqt/mediasrv.py b/qt/aqt/mediasrv.py index f91506a71..94082814b 100644 --- a/qt/aqt/mediasrv.py +++ b/qt/aqt/mediasrv.py @@ -256,7 +256,7 @@ def graph_data() -> bytes: return aqt.mw.col.backend.graphs(search=args["search"], days=args["days"]) -def graph_preferences() -> pb.GraphsPreferences: +def graph_preferences() -> bytes: return aqt.mw.col.backend.get_graphs_preferences()