Fixed react refresh bug and fixed white background when clicking on task which was a TASK_AUDIT hangover from react local storagedb now pointing too python fastapi
This commit is contained in:
+2
-1
@@ -119,7 +119,7 @@ def seed_db():
|
||||
status=t['status'],
|
||||
added_at=datetime.fromisoformat(t['addedAt'])
|
||||
)
|
||||
db.merge(db_task)
|
||||
db_task = db.merge(db_task)
|
||||
|
||||
# Add tags
|
||||
for tag_name in t.get('tags', []):
|
||||
@@ -127,6 +127,7 @@ def seed_db():
|
||||
if not tag:
|
||||
tag = models.Tag(tag=tag_name)
|
||||
db.add(tag)
|
||||
db.flush()
|
||||
if tag not in db_task.tags:
|
||||
db_task.tags.append(tag)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user