Skip to content

Commit

Permalink
style: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Sep 27, 2024
1 parent 7ff327e commit bbd3f41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions horde/classes/stable/processing_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ def log_aborted_generation(self):
def set_generation(self, generation, things_per_sec, **kwargs):
state = kwargs.get("state", "ok")
for metadata in kwargs.get("gen_metadata", []):
if metadata.get('value') == 'csam':
state = 'csam'
if metadata.get("value") == "csam":
state = "csam"
else:
state = 'censored'
state = "censored"
if state in ["censored", "csam"]:
self.censored = True
db.session.commit()
Expand Down

0 comments on commit bbd3f41

Please sign in to comment.