mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 09:52:38 +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
|
||||
- ✨ — Add waiting tasks count on index page and app API
|
||||
- ✨ — Allow to customize the name of the argos agent
|
||||
- 🩹 — Fix tasks_tmp table truncating
|
||||
|
||||
## 0.9.0
|
||||
|
||||
|
|
|
@ -568,9 +568,8 @@ async def update_from_config(db: Session, config: schemas.Config):
|
|||
db.commit()
|
||||
else:
|
||||
logger.debug("Truncating tasks_tmp table")
|
||||
db.execute(
|
||||
sa_text("TRUNCATE TABLE tasks_tmp;").execution_options(autocommit=True)
|
||||
)
|
||||
db.execute(sa_text("TRUNCATE TABLE tasks_tmp RESTART IDENTITY;"))
|
||||
db.commit()
|
||||
|
||||
return {
|
||||
"added": added_tasks,
|
||||
|
|
Loading…
Reference in a new issue