Commit 547f780a authored by 段英荣's avatar 段英荣

Merge branch 'sync_tx' into 'master'

modify

See merge request !193
parents a960ed13 6d740089
...@@ -119,7 +119,7 @@ class User(models.Model): ...@@ -119,7 +119,7 @@ class User(models.Model):
def get_same_group_user_id_list(self): def get_same_group_user_id_list(self):
#todo 同组的数据限制大小,后续可能会去掉同组的数据 #todo 有的同组数据过大,导致celery cpu过高,暂时限制同组的数据大小,后续可能会去掉同组的数据
same_group_user_id_list = list() same_group_user_id_list = list()
group_items_list = list(GroupUserRole.objects.using(settings.SLAVE_DB_NAME).filter(user_id=self.user_id).values_list("group_id")) group_items_list = list(GroupUserRole.objects.using(settings.SLAVE_DB_NAME).filter(user_id=self.user_id).values_list("group_id"))
for group_id in group_items_list: for group_id in group_items_list:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment