Skip to content

Commit

Permalink
alt fix for nested Groups
Browse files Browse the repository at this point in the history
supersedes 9e2e4a6 allowing access to other attributes of `GroupDescription` without the full Group fragment
  • Loading branch information
stg-annon committed Sep 20, 2024
1 parent fe043fa commit 8ad0bdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stashapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def __init__(self, conn:dict={}, fragments:list[str]=[], verify_ssl:bool=True):
"Performer": "{ id }",
"Image": "{ id }",
"Gallery": "{ id }",
"Group": "{ id }",
}
attribute_overrides = {
"ScrapedStudio": {"parent": "{ stored_id }"},
Expand All @@ -78,7 +79,6 @@ def __init__(self, conn:dict={}, fragments:list[str]=[], verify_ssl:bool=True):
"ImageFile": { "fingerprint": None },
"GalleryFile": { "fingerprint": None },
"Gallery": { "image": None },
"Group": {"containing_groups": "{ group { id } }", "sub_groups": "{ group { id } }"},
}
self.fragments = self._get_fragments_introspection(fragment_overrides, attribute_overrides)
for fragment in fragments:
Expand Down

0 comments on commit 8ad0bdf

Please sign in to comment.