调整排行执行逻辑
This commit is contained in:
4
robot.py
4
robot.py
@@ -678,7 +678,7 @@ class Robot(Job):
|
||||
except Exception as e:
|
||||
self.LOG.error(f"xiu_ren_download_task error:{e}")
|
||||
|
||||
async def generate_and_send_ranking(self):
|
||||
def generate_and_send_ranking(self):
|
||||
try:
|
||||
receivers = self.gbm.get_group_list()
|
||||
if not receivers:
|
||||
@@ -686,6 +686,6 @@ class Robot(Job):
|
||||
for r in receivers:
|
||||
if self.gbm.get_group_permission(r, Feature.DAILY_SUMMARY) == PermissionStatus.ENABLED:
|
||||
output = self.message_storage.generate_and_send_ranking(r, self.allContacts)
|
||||
await self.ipad_bot.send_text_message(r, output)
|
||||
asyncio.run(self.ipad_bot.send_text_message(r, output))
|
||||
except Exception as e:
|
||||
self.LOG.error(f"SendRanking error:{e}")
|
||||
|
||||
Reference in New Issue
Block a user