Skip to content

Database#111

Open
flufflycthu1u wants to merge 25 commits into
masterfrom
database
Open

Database#111
flufflycthu1u wants to merge 25 commits into
masterfrom
database

Conversation

@flufflycthu1u
Copy link
Copy Markdown
Collaborator

@flufflycthu1u flufflycthu1u commented May 20, 2026

Adds a database implementation storing JSON files using GitHub artifacts to store information between runs on what pets have been posted recently.

The primary goal of this database is to prevent the same pet being posted multiple times. This will ensure more different pets are given exposure, viewers aren't confused by duplicate posts, and we don't run afoul of platform rules on bot posts.

This also opens the potential for more features that require data storage so hopefully we can come up with something interesting.

Closes #73


def _build_pet(self, animal: dict) -> AdoptablePet:
attrs = animal.get("attributes", {})
animal_id = animal.get("id", "")
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Manual.py could probably use some updating. The pet object it was creating didn't have the pet_id we should check if anything else is missing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve pet posting logic to not post the same pet

1 participant