| 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()) |