Skip to content

Commit

Permalink
general: some cleanup & mypy improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
karlicoss committed Jun 6, 2023
1 parent 8830f93 commit dd55388
Show file tree
Hide file tree
Showing 2 changed files with 126 additions and 109 deletions.
2 changes: 1 addition & 1 deletion src/cachew/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ def missing_keys(cached: List[str], wanted: List[str]) -> Optional[List[str]]:

# 'table' used to be old 'cache' table name, so we just delete it regardless
# otherwise it might overinfalte the cache db with stale values
conn.execute(text(f'DROP TABLE IF EXISTS `table`'))
conn.execute(text('DROP TABLE IF EXISTS `table`'))

# NOTE: we have to use .drop and then .create (e.g. instead of some sort of replace)
# since it's possible to have schema changes inbetween calls
Expand Down
Loading

0 comments on commit dd55388

Please sign in to comment.