Skip to content

Commit

Permalink
[修复]substitute_parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
longfengpili committed Sep 29, 2024
1 parent 70e1848 commit 58285ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pydbapi/sql/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# @Author: longfengpili
# @Date: 2023-06-02 15:27:41
# @Last Modified by: longfengpili
# @Last Modified time: 2024-09-29 11:23:18
# @Last Modified time: 2024-09-29 11:45:27
# @github: https://github.com/longfengpili


Expand Down Expand Up @@ -139,7 +139,7 @@ def substitute_parameters(self, **kwargs):

sql = self.sql
for key, value in kwargs.items():
sql = re.sub(r"\${key}", f"{value}", sql)
sql = re.sub(rf"\${key}", f"{value}", sql)

return sql

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# @Author: longfengpili
# @Date: 2023-06-02 15:27:41
# @Last Modified by: longfengpili
# @Last Modified time: 2024-09-29 11:23:42
# @Last Modified time: 2024-09-29 11:45:45
# @github: https://github.com/longfengpili


Expand All @@ -11,7 +11,7 @@
from pathlib import Path
from setuptools.command.install import install

VERSION = '0.0.133'
VERSION = '0.0.134'
PROJECT_NAME = 'pydbapi'

with open('README.md', 'r', encoding='utf-8') as f:
Expand Down

0 comments on commit 58285ef

Please sign in to comment.