(file_code: FileCodes)
| 212 | |
| 213 | |
| 214 | async 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 | |
| 221 | def build_file_metadata(file_code: FileCodes) -> dict: |
no outgoing calls
no test coverage detected