MCPcopy Create free account
hub / github.com/TechifyBots/Rename-Bot / get_metadata_mode

Method get_metadata_mode

helper/database.py:89–91  ·  view source on GitHub ↗
(self, id)

Source from the content-addressed store, hash-verified

87 await self.col.update_one({'_id': int(id)}, {'$set': {'metadata_mode': bool_meta}})
88
89 async def get_metadata_mode(self, id):
90 user = await self.col.find_one({'_id': int(id)})
91 return user.get('metadata_mode', None)
92
93 async def set_metadata_code(self, id, metadata_code):
94 await self.col.update_one({'_id': int(id)}, {'$set': {'metadata_code': metadata_code}})

Callers 2

upload_docFunction · 0.80
handle_metadataFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected