sheami / tests /lock_patient_records.py
vikramvasudevan's picture
Upload folder using huggingface_hub
0558fa7 verified
import asyncio
from modules.db import SheamiDB
async def update():
db = SheamiDB()
result = await db.patients.update_many({}, {"$set": {"locked": True}})
print(f"Updated {result.modified_count} documents")
if __name__ == "__main__":
asyncio.run(update())