Skip to content

Commit

Permalink
style: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Jun 10, 2024
1 parent 22135a3 commit ec63577
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions horde/classes/kobold/genstats.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from datetime import datetime, timedelta
from datetime import datetime

from sqlalchemy import Enum, func
from sqlalchemy import Enum

from horde.enums import ImageGenState
from horde.flask import db
Expand Down
5 changes: 2 additions & 3 deletions horde/classes/stable/genstats.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
from datetime import datetime, timedelta
from datetime import datetime

from sqlalchemy import Enum, func
from sqlalchemy import Enum

from horde.enums import ImageGenState
from horde.flask import db
from horde.model_reference import model_reference


class ImageGenerationStatisticPP(db.Model):
Expand Down
2 changes: 2 additions & 0 deletions horde/model_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ def call_function(self):
self.nsfw_models.add(model)
if self.reference[model].get("type") == "controlnet":
self.controlnet_models.add(model)

break
except Exception as e:
logger.error(f"Error when downloading nataili models list: {e}")

for _riter in range(10):
try:
self.text_reference = requests.get(
Expand Down

0 comments on commit ec63577

Please sign in to comment.