mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 18:02:41 +02:00
🩹 — Fix tasks_tmp table truncating
This commit is contained in:
parent
2e6c2e205f
commit
5b91c6a482
2 changed files with 3 additions and 3 deletions
|
@ -13,6 +13,7 @@
|
||||||
- 💄 — Better mobile display
|
- 💄 — Better mobile display
|
||||||
- ✨ — Add waiting tasks count on index page and app API
|
- ✨ — Add waiting tasks count on index page and app API
|
||||||
- ✨ — Allow to customize the name of the argos agent
|
- ✨ — Allow to customize the name of the argos agent
|
||||||
|
- 🩹 — Fix tasks_tmp table truncating
|
||||||
|
|
||||||
## 0.9.0
|
## 0.9.0
|
||||||
|
|
||||||
|
|
|
@ -568,9 +568,8 @@ async def update_from_config(db: Session, config: schemas.Config):
|
||||||
db.commit()
|
db.commit()
|
||||||
else:
|
else:
|
||||||
logger.debug("Truncating tasks_tmp table")
|
logger.debug("Truncating tasks_tmp table")
|
||||||
db.execute(
|
db.execute(sa_text("TRUNCATE TABLE tasks_tmp RESTART IDENTITY;"))
|
||||||
sa_text("TRUNCATE TABLE tasks_tmp;").execution_options(autocommit=True)
|
db.commit()
|
||||||
)
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"added": added_tasks,
|
"added": added_tasks,
|
||||||
|
|
Loading…
Reference in a new issue