Fixed a very minor bug
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
@@ -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 ---------------------------------------------------
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user