Change the function name in genbackend.py

This commit is contained in:
Henrik Giesel 2021-01-22 20:05:28 +01:00
parent de71123ab4
commit bf130d1da0
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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()