Skip to content

Commit

Permalink
chore: update base.py
Browse files Browse the repository at this point in the history
overriden -> overridden
  • Loading branch information
Ikko Eltociear Ashimine authored May 19, 2024
1 parent 85bed96 commit ae8e228
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions horde/apis/v2/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def get_hashed_params_dict(self):
params_hash = hash_dictionary(gen_payload)
return params_hash

# We split this into its own function, so that it may be overriden and extended
# We split this into its own function, so that it may be overridden and extended
def validate(self):
if settings.mode_maintenance():
raise e.MaintenanceMode("Generate")
Expand Down Expand Up @@ -315,7 +315,7 @@ def get_size_too_big_message(self):
"It will expire in 20 minutes. Please confider reducing its size of the request."
)

# We split this into its own function, so that it may be overriden
# We split this into its own function, so that it may be overridden
def initiate_waiting_prompt(self):
self.wp = WaitingPrompt(
worker_ids=self.workers,
Expand All @@ -332,7 +332,7 @@ def initiate_waiting_prompt(self):
webhook=self.args.webhook,
)

# We split this into its own function, so that it may be overriden and extended
# We split this into its own function, so that it may be overridden and extended
def activate_waiting_prompt(self):
if self.args.extra_source_images:
for iiter, eimg in enumerate(self.args.extra_source_images):
Expand Down Expand Up @@ -503,7 +503,7 @@ def check_in(self):
ipaddr=self.worker_ip,
)

# We split this into its own function, so that it may be overriden and extended
# We split this into its own function, so that it may be overridden and extended
def validate(self):
self.skipped = {}
self.user = database.find_user_by_api_key(self.args["apikey"])
Expand Down Expand Up @@ -538,7 +538,7 @@ def validate(self):
# Untrusted users can only have 3 workers
if not self.user.trusted and worker_count > 3:
raise e.Forbidden("To avoid abuse, untrusted users can only have up to 3 distinct workers.")
# Trusted users can have up to 20 workers by default unless overriden
# Trusted users can have up to 20 workers by default unless overridden
if worker_count > 20 and worker_count > self.user.worker_invited:
raise e.Forbidden(
"To avoid abuse, tou cannot onboard more than 20 workers as a trusted user. Please contact us on Discord to adjust.",
Expand Down

0 comments on commit ae8e228

Please sign in to comment.