Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed ships awaiting payout #1117

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Fixed ships awaiting payout #1117

wants to merge 2 commits into from

Conversation

BudzioT
Copy link
Collaborator

@BudzioT BudzioT commented Jan 19, 2025

Earlier because of using adjusted_payout, payout was set to 0 instead of null, so ships awaiting payouts didn't show how many matchups are left, but just "0 doubloons".
Changed it, while making sure that ships that were hidden and didn't go through 10 matchups (so usually getting caught on fraud before payout) won't show negative matchups remaining
image

Copy link

vercel bot commented Jan 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
high-seas ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 19, 2025 4:18pm

Copy link
Collaborator

@polytroper polytroper left a comment

Choose a reason for hiding this comment

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

Actually can we change this to just use the paid_out bool from airtable?

Checking if there are 10 matchups is fragile. There are actually scenarios where a ship can count 10, get paid out 1, then go back one if a vote is marked as low-quality after the fact

I also don't want to proliferate the magic number 10 into more places where it will have to be tracked down later if (when...) we want to change it

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.

2 participants