wuzilong 1 kuukausi sitten
vanhempi
commit
60d8e4b274
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      pipeline_bot/pipeline/tasks/t02_biqi_kill20.py

+ 1 - 1
pipeline_bot/pipeline/tasks/t02_biqi_kill20.py

@@ -58,7 +58,7 @@ def _try_spawn(ctx: PipelineContext, af, last: dict) -> bool:
             and now - last.get("dlg_open_t", 0.0) < 10.0:
             and now - last.get("dlg_open_t", 0.0) < 10.0:
         smsg = str(dlg.get("sMsg", ""))
         smsg = str(dlg.get("sMsg", ""))
         act = next((a for a in _LINK_RE.findall(smsg)
         act = next((a for a in _LINK_RE.findall(smsg)
-                    if a not in ("exit",)), None)
+                    if a != "exit"), None)
         if act is not None:
         if act is not None:
             body = json.dumps({"UserID": dlg.get("UserID", "999999999"),
             body = json.dumps({"UserID": dlg.get("UserID", "999999999"),
                                "Act": f"@{act}",
                                "Act": f"@{act}",