Fix migration failing when empty flow

This commit is contained in:
hhh
2024-06-03 23:37:10 +03:00
parent ec679eafb0
commit b0e4a1a822
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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 ---------------------------------------------------

View File

@@ -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"