Skip to content

Commit 9037800

Browse files
committed
fix: Solve minor bugs
1 parent 84129fc commit 9037800

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/controllers/network_controller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ async def init_network(
5353
network_json = jsonable_encoder(network)
5454
try:
5555
new_network = await create_network(network_json)
56-
# background_tasks.add_task(generate_network, new_network)
57-
await generate_network(new_network)
56+
background_tasks.add_task(generate_network, new_network)
57+
# await generate_network(new_network)
5858
return JSONResponse(
5959
status_code=status.HTTP_201_CREATED,
6060
content=json_encoder(new_network)

app/controllers/operation_controller.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
FilterConfigs,
88
MaximizeImpact,
99
MinimizeImpact,
10-
NumberOfProducts,
1110
ValidModel
1211
)
1312
from app.controllers.serialize_controller import serialize_network

0 commit comments

Comments
 (0)