Skip to content

Commit 53939d1

Browse files
authored
Merge pull request #27 from LuisLuii/feature/update_bugfix
Feature/update bugfix
2 parents 87d7f4c + 5ff919f commit 53939d1

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@
1212

1313
---
1414

15-
16-
![intro](https://github.com/LuisLuii/FastAPIQuickCRUD/blob/main/pic/example.gif)
17-
18-
19-
15+
[My other open sorce project which supports crud code gen](https://github.com/LuisLuii/fastapi-crud-project-generator)
2016

2117

2218
- [Introduction](#introduction)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import setup, find_packages
22

3-
VERSION = '0.2.2'
3+
VERSION = '0.2.4'
44

55
print("""
66

src/fastapi_quickcrud/misc/abstract_parser.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ def __init__(self, async_model, crud_models, autocommit):
2424
self.autocommit = autocommit
2525

2626
async def async_commit(self, session):
27+
await session.flush()
2728
if self.autocommit:
2829
await session.commit()
2930

3031
def commit(self, session):
32+
session.flush()
3133
if self.autocommit:
3234
session.commit()
3335

0 commit comments

Comments
 (0)