Fix migration failing when empty flow
This commit is contained in:
@@ -106,7 +106,7 @@ def _modify_records(
|
|||||||
for record in data:
|
for record in data:
|
||||||
record_mod = {}
|
record_mod = {}
|
||||||
for key in record.keys():
|
for key in record.keys():
|
||||||
if key in col_to_del and key in flow:
|
if key in col_to_del and flow and key in flow:
|
||||||
record_mod[flow[key]] = record[key]
|
record_mod[flow[key]] = record[key]
|
||||||
elif key in col_to_del:
|
elif key in col_to_del:
|
||||||
pass
|
pass
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ copyright = "2020, Ege Ozkan; 2024, hhh"
|
|||||||
author = "Ege Ozkan, hhh"
|
author = "Ege Ozkan, hhh"
|
||||||
|
|
||||||
# The full version, including alpha/beta/rc tags
|
# The full version, including alpha/beta/rc tags
|
||||||
release = "v1.0.1"
|
release = "v1.0.2"
|
||||||
|
|
||||||
|
|
||||||
# -- General configuration ---------------------------------------------------
|
# -- General configuration ---------------------------------------------------
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "aiodatalite"
|
name = "aiodatalite"
|
||||||
version = "1.0.1"
|
version = "1.0.2"
|
||||||
description = "A simple Python library to bind dataclasses with databases. Now asynchronous!"
|
description = "A simple Python library to bind dataclasses with databases. Now asynchronous!"
|
||||||
authors = ["hhh <shshshsh@horsefucker.org>", "Ege Ozkan <egeemirozkan24@gmail.com>"]
|
authors = ["hhh <shshshsh@horsefucker.org>", "Ege Ozkan <egeemirozkan24@gmail.com>"]
|
||||||
documentation = "https://aiodatalite.readthedocs.io"
|
documentation = "https://aiodatalite.readthedocs.io"
|
||||||
|
|||||||
Reference in New Issue
Block a user