Skip to content

Conversation

thekaveman
Copy link
Member

Need to implement __contains__ so that "key" in cache syntax works.

E.g. https://github.com/compilerla/compiler-admin/blob/main/compiler_admin/services/toggl.py#L32

if email in USER_INFO:
    USER_INFO[email].update(data)
else:
    USER_INFO[email] = data

@thekaveman thekaveman changed the title Fix: JsonFileCache Fix: JsonFileCache contains Dec 2, 2024
Copy link

github-actions bot commented Dec 2, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  compiler_admin/services
  files.py
Project Total  

This report was generated by python-coverage-comment-action

@thekaveman thekaveman merged commit 986d9cc into main Dec 2, 2024
2 checks passed
@thekaveman thekaveman deleted the fix/files branch December 2, 2024 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant