MCPcopy Index your code
hub / github.com/vastsa/FileCodeBox / update_file_usage

Function update_file_usage

apps/base/views.py:214–218  ·  view source on GitHub ↗
(file_code: FileCodes)

Source from the content-addressed store, hash-verified

212
213
214async def update_file_usage(file_code: FileCodes) -> None:
215 file_code.used_count += 1
216 if file_code.expired_count > 0:
217 file_code.expired_count -= 1
218 await file_code.save()
219
220
221def build_file_metadata(file_code: FileCodes) -> dict:

Callers 2

get_code_fileFunction · 0.85
select_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected