From 273b454c6cf4cb60ada76f7f12f5fc294feaeed3 Mon Sep 17 00:00:00 2001 From: Kilian Date: Wed, 26 Aug 2020 14:58:44 +0200 Subject: [PATCH] [Fix] Keep support for python 3.5 --- CHANGELOG.md | 6 ++++++ ankipandas/raw.py | 4 +++- ankipandas/version.txt | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2b0c80..6b340c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 0.3.6 - 2020-08-26 + +### Fixed + +- Keep support for python 3.5 + ## 0.3.5 - 2020-08-26 ### Fixed diff --git a/ankipandas/raw.py b/ankipandas/raw.py index 44c9831..3ab2041 100644 --- a/ankipandas/raw.py +++ b/ankipandas/raw.py @@ -130,7 +130,9 @@ def read_info(db: sqlite3.Connection, table_name: str): """ version = get_db_version(db) - _df = pd.read_sql_query(f"SELECT * FROM {table_name} ", db) + _df = pd.read_sql_query( + "SELECT * FROM {table_name} ".format(table_name=table_name), db + ) if version == 0: assert len(_df) == 1, _df ret = {} diff --git a/ankipandas/version.txt b/ankipandas/version.txt index c2c0004..449d7e7 100644 --- a/ankipandas/version.txt +++ b/ankipandas/version.txt @@ -1 +1 @@ -0.3.5 +0.3.6