Проверка шаблона шины для iOS
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

15 行
417B

  1. def pipeFormat(fmtExRecent, fmtRecent, fmtSet, fmtToggle, fmtToggleNil, name, entity):
  2. props = entity.pipes[name]
  3. if "recent" and "ex" in props:
  4. return fmtExRecent
  5. elif "recent" in props:
  6. return fmtRecent
  7. elif "set" in props:
  8. return fmtSet
  9. elif "toggle" in props:
  10. return fmtToggle
  11. elif "toggleNil" in props:
  12. return fmtToggleNil
  13. return "НИНАЮ"