示例#1
0
文件: adbk_struct.py 项目: stdk/u2py
def get_events(command):
 borders = command.event,command.event+command.count
 limits = min(*borders),max(*borders)-1
 blocks = [FLASHEVENT(event) for event in ServiceEvent.load(limits)]
 return SAnswer(blocks = blocks)
示例#2
0
文件: adbk_struct.py 项目: stdk/u2py
def get_last_event_no(command):
 last = ServiceEvent.load_last()
 if last == None: return
 event = FLASHEVENT(last)
 return SAnswer(blocks = [event])