From c0a79f49d88a179a006bd988c8d7660e313a69a7 Mon Sep 17 00:00:00 2001 From: "WQY\\qiong" Date: Fri, 18 Nov 2022 23:46:51 +0800 Subject: [PATCH] Support inp out [REPORT] --- api/s22_report.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/api/s22_report.py b/api/s22_report.py index e69de29..3308543 100644 --- a/api/s22_report.py +++ b/api/s22_report.py @@ -0,0 +1,11 @@ +from .operation import * + + +def inp_out_report(name: str) -> list[str]: + lines = [] + objs = read_all(name, f"select * from report") + for obj in objs: + key = obj['key'] + value = obj['value'] + lines.append(f'{key} {value}') + return lines