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

Method get_metadata_code

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

Source from the content-addressed store, hash-verified

94 await self.col.update_one({'_id': int(id)}, {'$set': {'metadata_code': metadata_code}})
95
96 async def get_metadata_code(self, id):
97 user = await self.col.find_one({'_id': int(id)})
98 return user.get('metadata_code', None)
99
100 async def set_used_limit(self, id, used):
101 await self.col.update_one({'_id': int(id)}, {'$set': {'used_limit': used}})

Callers 3

upload_docFunction · 0.80
handle_metadataFunction · 0.80
query_metadataFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected