mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fix flake8
This commit is contained in:
parent
4b6d9a73ed
commit
137fbacb92
@ -1,6 +1,4 @@
|
||||
from typing import Optional, Union
|
||||
import networkx as nx
|
||||
import copy
|
||||
|
||||
from abc import ABC, abstractmethod
|
||||
from itertools import product
|
||||
|
@ -6,7 +6,6 @@ from typing import List, Literal, Optional, Union, cast
|
||||
|
||||
from pydantic import BaseModel, Extra, Field, StrictFloat, StrictInt, StrictStr, parse_raw_as, validator
|
||||
|
||||
from invokeai.app.services.image_record_storage import OffsetPaginatedResults
|
||||
from invokeai.app.invocations.primitives import ImageField
|
||||
from invokeai.app.services.graph import Graph
|
||||
|
||||
@ -450,7 +449,7 @@ class SqliteBatchProcessStorage(BatchProcessStorageBase):
|
||||
"""--sql
|
||||
SELECT bp.*
|
||||
FROM batch_process bp
|
||||
WHERE bp.batch_id IN
|
||||
WHERE bp.batch_id IN
|
||||
(
|
||||
SELECT batch_id
|
||||
FROM batch_session bs
|
||||
@ -476,7 +475,7 @@ class SqliteBatchProcessStorage(BatchProcessStorageBase):
|
||||
try:
|
||||
self._lock.acquire()
|
||||
self._cursor.execute(
|
||||
f"""--sql
|
||||
"""--sql
|
||||
UPDATE batch_process
|
||||
SET canceled = 0
|
||||
WHERE batch_id = ?;
|
||||
@ -497,7 +496,7 @@ class SqliteBatchProcessStorage(BatchProcessStorageBase):
|
||||
try:
|
||||
self._lock.acquire()
|
||||
self._cursor.execute(
|
||||
f"""--sql
|
||||
"""--sql
|
||||
UPDATE batch_process
|
||||
SET canceled = 1
|
||||
WHERE batch_id = ?;
|
||||
@ -640,7 +639,7 @@ class SqliteBatchProcessStorage(BatchProcessStorageBase):
|
||||
# Change the state of a batch session
|
||||
if changes.state is not None:
|
||||
self._cursor.execute(
|
||||
f"""--sql
|
||||
"""--sql
|
||||
UPDATE batch_session
|
||||
SET state = ?
|
||||
WHERE batch_id = ? AND session_id = ?;
|
||||
|
Loading…
Reference in New Issue
Block a user