We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 368e280 commit 717ee95Copy full SHA for 717ee95
1 file changed
backend/utils/methods_handler.py
@@ -1,6 +1,8 @@
1
import json
2
from collections import defaultdict
3
4
+FRONT_SELECTION_PREFIX = "export const METHODS = "
5
+
6
7
class Methods:
8
@staticmethod
@@ -17,8 +19,7 @@ def parse_frontend_file_to_dll_methods(
17
19
):
18
20
with open(front_selection_resource_path, "r") as f:
21
content = f.read()
- prefix = "export const METHODS = "
- json_str = content[len(prefix):]
22
+ json_str = content[len(FRONT_SELECTION_PREFIX):]
23
selection_tree = json.loads(json_str)
24
25
dll_methods = defaultdict(list)
0 commit comments