- f = kw.get('tg_flash', None)
- r = cls.select()
- return dict(records=r, name=name, namepl=namepl, tg_flash=f)
+ if autorID is None:
+ r = cls.select()
+ else:
+ r = cls.selectBy(autorID=autorID)
+ return dict(records=r, name=name, namepl=namepl, tg_flash=tg_flash)