Commit 63a143d0 authored by lcn's avatar lcn

bug修复

parent 5b9cfac6
......@@ -75,7 +75,7 @@ async def get_elec_mtid_sid_by_cid(cid):
async def load_add_to_compy_ids(cid):
if not isinstance(cid, list) or not isinstance(cid, tuple):
if not isinstance(cid, (list, tuple)):
cid = [cid]
db = SETTING.mysql_db
sql = f"SELECT monitor.mtid, monitor.sid FROM {db}.monitor " \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment