From 58285efda764cbed169fbcc13df2440715487ecf Mon Sep 17 00:00:00 2001 From: longfengpili <398745129@qq.com> Date: Sun, 29 Sep 2024 11:46:09 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E5=A4=8D]substitute=5Fparameters?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pydbapi/sql/parse.py | 4 ++-- setup.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pydbapi/sql/parse.py b/pydbapi/sql/parse.py index ab0c28f..5da2fad 100644 --- a/pydbapi/sql/parse.py +++ b/pydbapi/sql/parse.py @@ -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 @@ -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 diff --git a/setup.py b/setup.py index 2a53af7..880323b 100644 --- a/setup.py +++ b/setup.py @@ -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 @@ -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: