fix(ci): resolve ruff SIM108 lint error and use github.token for registry login
Some checks failed
CI / lint-and-test (push) Failing after 22s
Some checks failed
CI / lint-and-test (push) Failing after 22s
This commit is contained in:
@@ -204,10 +204,7 @@ def bulk_tags(
|
||||
if not tags:
|
||||
raise HTTPException(status_code=400, detail="No tags provided")
|
||||
|
||||
if body.mode == "replace":
|
||||
update = {"$set": {"tags": tags}}
|
||||
else:
|
||||
update = {"$addToSet": {"tags": {"$each": tags}}}
|
||||
update = {"$set": {"tags": tags}} if body.mode == "replace" else {"$addToSet": {"tags": {"$each": tags}}}
|
||||
|
||||
try:
|
||||
result_obj = events_collection.update_many(query, update)
|
||||
|
||||
Reference in New Issue
Block a user