Fix bug when dump resource
This commit is contained in:
@@ -130,7 +130,7 @@ def inp_out_source(name: str) -> list[str]:
|
|||||||
objs = read_all(name, 'select * from sources')
|
objs = read_all(name, 'select * from sources')
|
||||||
for obj in objs:
|
for obj in objs:
|
||||||
node = obj['node']
|
node = obj['node']
|
||||||
s_type = obj['s_type']
|
s_type = obj['type']
|
||||||
strength = obj['strength']
|
strength = obj['strength']
|
||||||
pattern = obj['pattern'] if obj['pattern'] != None else ''
|
pattern = obj['pattern'] if obj['pattern'] != None else ''
|
||||||
lines.append(f'{node} {s_type} {strength} {pattern}')
|
lines.append(f'{node} {s_type} {strength} {pattern}')
|
||||||
|
|||||||
Reference in New Issue
Block a user