Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
wzdnzd committed Nov 13, 2024
1 parent f9f5280 commit e20a9f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion subscribe/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,13 +424,16 @@ def assign(
for i in range(num):
index = -1 if num == 1 else i + 1
sub = subscribe[i] if subscribe else ""
renew = {"coupon_code": coupon, "api_prefix": api_prefix}
renew = {"coupon_code": coupon} if coupon else {}

globalid += 1
if accounts:
renew.update(accounts[i])
renew.update(renews)

if renew and api_prefix:
renew["api_prefix"] = api_prefix

task = TaskConfig(
name=name,
taskid=globalid,
Expand Down

0 comments on commit e20a9f3

Please sign in to comment.