import pymongo
conn = pymongo.MongoClient("localhost", 27017)
db = conn["crypto_signals"]
signals_db = db["signals"]
signals_db.update({}, {"$set": {"priority": 0}}, )
signals = signals_db.find({"priority":{"$exists":False}})
for signal in signals:
print(signal)