Fixed a very minor bug

This commit is contained in:
Ege Emir Özkan
2020-08-16 19:26:08 +03:00
parent b7e915d6db
commit 94eabb3e20
3 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ def _update_entry(self) -> None:
kv_pairs = [item for item in asdict(self).items()] kv_pairs = [item for item in asdict(self).items()]
kv_pairs.sort(key=lambda item: item[0]) kv_pairs.sort(key=lambda item: item[0])
query = f"UPDATE {table_name} " + \ query = f"UPDATE {table_name} " + \
f"SET {', '.join(item[0] + ' = ' + _convert_sql_format(item[1]) for item in kv_pairs)}" + \ f"SET {', '.join(item[0] + ' = ' + _convert_sql_format(item[1]) for item in kv_pairs)} " + \
f"WHERE obj_id = {getattr(self, 'obj_id')};" f"WHERE obj_id = {getattr(self, 'obj_id')};"
cur.execute(query) cur.execute(query)
con.commit() con.commit()

View File

@@ -23,7 +23,7 @@ copyright = '2020, Ege Ozkan'
author = 'Ege Ozkan' author = 'Ege Ozkan'
# The full version, including alpha/beta/rc tags # The full version, including alpha/beta/rc tags
release = 'v0.5.3' release = 'v0.5.5'
# -- General configuration --------------------------------------------------- # -- General configuration ---------------------------------------------------

View File

@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
setuptools.setup( setuptools.setup(
name="datalite", # Replace with your own username name="datalite", # Replace with your own username
version="0.5.4", version="0.5.5",
author="Ege Ozkan", author="Ege Ozkan",
author_email="egeemirozkan24@gmail.com", author_email="egeemirozkan24@gmail.com",
description="A small package that binds dataclasses to an sqlite database", description="A small package that binds dataclasses to an sqlite database",