Skip to content

Commit

Permalink
Merge pull request #46 from Haidra-Org/operations-endspoints-fix
Browse files Browse the repository at this point in the history
fix: bring inline with changes from API `operations` addition
  • Loading branch information
tazlin authored Oct 23, 2023
2 parents 475cb37 + 0cf809a commit cd2f845
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 4 deletions.
1 change: 1 addition & 0 deletions horde_sdk/ai_horde_api/apimodels/workers/_workers_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class WorkerDetailItem(HordeAPIObject):
info: str | None = None
nsfw: bool | None = None
owner: str | None = None
ipaddr: str | None = None
trusted: bool | None = None
flagged: bool | None = None
suspicious: int | None = None
Expand Down
2 changes: 1 addition & 1 deletion horde_sdk/generic_api/utils/swagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ def __init__(
response.raise_for_status()
self._swagger_json = response.json()
except requests.exceptions.HTTPError as e:
raise RuntimeError(f"Failed to get swagger.json from server: {e.response.text}") from e
raise RuntimeError(f"Failed to get swagger.json from server: {e.response}") from e

def get_swagger_doc(self) -> SwaggerDoc:
"""Get the swagger doc as a SwaggerDoc object."""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"post_processing": [
"GFPGAN"
],
"post_processing_order": "facefixers_first",
"karras": false,
"tiling": false,
"hires_fix": false,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"days": 7
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"ipaddr": "127.0.0.1",
"hours": 24
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"maintenance": false,
"maintenance_msg": "",
"paused": false,
"info": "aa",
"info": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"name": "aaaaa",
"team": "0bed257b-e57c-4327-ac64-40cdfb1ac5e6"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"post_processing": [
"GFPGAN"
],
"post_processing_order": "facefixers_first",
"karras": false,
"tiling": false,
"hires_fix": false,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"message": "OK"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"message": "OK"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{
"ipaddr": "127.0.0.1",
"seconds": 1440
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{
"ipaddr": "127.0.0.1",
"seconds": 1440
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"message": "OK"
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"info": "https://dbzer0.com",
"nsfw": false,
"owner": "username#1",
"ipaddr": "username#1",
"trusted": false,
"flagged": false,
"suspicious": 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"info": "https://dbzer0.com",
"nsfw": false,
"owner": "username#1",
"ipaddr": "username#1",
"trusted": false,
"flagged": false,
"suspicious": 0,
Expand Down

0 comments on commit cd2f845

Please sign in to comment.