Skip to content

Commit

Permalink
Merge branch 'main' of github.com:saezlab/cache-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
npalacioescat committed Nov 15, 2024
2 parents f21d5b4 + 42eca69 commit 32e95e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cache_manager/_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,7 @@ def _quotes(string: str | None, typ: str = 'VARCHAR') -> str:

string = f"json('{json.dumps(string)}')"

return f'"{string}"' if (
return f"'{string}'" if (
typ.startswith('VARCHAR') or
typ.startswith('DATETIME')
) else string
Expand Down
2 changes: 1 addition & 1 deletion cache_manager/_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def open(self, **kwargs) -> str | IO | dict[str, str | IO] | None:

if self.status == Status.READY.value:

return self._open(**kwargs).get('result', None)
return self._open(**kwargs)


def ready(self):
Expand Down
1 change: 1 addition & 0 deletions cache_manager/_open.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def __init__(

setattr(self, k, v)

self.result = None
self.set_type()
self.open()
self.extract()
Expand Down

0 comments on commit 32e95e3

Please sign in to comment.