From 58959786c677480a0e2b7a755a46e582a6d6e1e5 Mon Sep 17 00:00:00 2001 From: "WQY\\qiong" Date: Sat, 17 Dec 2022 10:14:24 +0800 Subject: [PATCH] Fix bug when dump resource --- api/s18_sources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/s18_sources.py b/api/s18_sources.py index 29c1fa7..432a4ee 100644 --- a/api/s18_sources.py +++ b/api/s18_sources.py @@ -130,7 +130,7 @@ def inp_out_source(name: str) -> list[str]: objs = read_all(name, 'select * from sources') for obj in objs: node = obj['node'] - s_type = obj['s_type'] + s_type = obj['type'] strength = obj['strength'] pattern = obj['pattern'] if obj['pattern'] != None else '' lines.append(f'{node} {s_type} {strength} {pattern}')