Browse Source

修复备份bug

pull/8873/head
feng626 2 years ago
parent
commit
794ec39446
  1. 2
      apps/assets/task_handlers/backup/handlers.py

2
apps/assets/task_handlers/backup/handlers.py

@ -74,7 +74,7 @@ class AssetAccountHandler(BaseAccountHandler):
# TODO 可以优化一下查询 在账号上做type的缓存 避免数据量大时连表操作
accounts = Account.objects.filter(
asset__platform__in=types
asset__platform__type__in=types
).annotate(type=F('asset__platform__type'))
if not accounts.first():
return data_map

Loading…
Cancel
Save