FIX: OUTside by mask

This commit is contained in:
Сергей Филимонов 2024-02-27 18:03:47 +07:00
parent a086f94798
commit 4f85cd81de

View File

@ -97,12 +97,12 @@ def main():
res["status"] = "RECALL_FALSE"
t = coll.update_one({
"client": res["client"],
t = coll.update_many({
"client": {'$regex': res["client"]},
"status": {'$in': ["NOT_ANSWERED", "RECALL_FALSE"]}
}, {'$set': res, '$inc': {"count_try": 1}})
coll.update_many({"count_try": {"$gt": 2}}, {"$set": {"status": "DELETED"}})
coll.update_many({"count_try": {"$gt": 2}, "client": res["client"]}, {"$set": {"status": "DELETED"}})
# -------------------------------
res.clear()