fix: keep one douyu cookie per account
This commit is contained in:
@@ -49,7 +49,11 @@ async def create_batch(
|
||||
|
||||
# 权限过滤账号
|
||||
valid_ids = []
|
||||
seen_ids = set()
|
||||
for aid in req.account_ids:
|
||||
if aid in seen_ids:
|
||||
continue
|
||||
seen_ids.add(aid)
|
||||
acc = db.query(Account).filter(Account.id == aid).first()
|
||||
if not acc:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user