示例#1
0
 def find_by_id(id, customers=None):
     return Blackout.from_db(db.get_blackout(id, customers))
示例#2
0
 def find_by_id(id: str, customers: List[str]=None) -> Optional['Blackout']:
     return Blackout.from_db(db.get_blackout(id, customers))
示例#3
0
 def get(id, customer=None):
     return Blackout.from_db(db.get_blackout(id, customer))
示例#4
0
文件: blackout.py 项目: 3IWOH/alerta
 def find_by_id(id, customer=None):
     return Blackout.from_db(db.get_blackout(id, customer))
示例#5
0
 def find_by_id(id: str, customers: List[str]=None) -> Optional['Blackout']:
     return Blackout.from_db(db.get_blackout(id, customers))