-
Notifications
You must be signed in to change notification settings - Fork 309
rerunning payday throws off nparticipants #261
Comments
We do not show nparticipants anywhere now. One option might be to just drop it. Or if we decide to keep it, why wouldn't clearing to 0 in zero_out_pending (at the start of the payday) solve the problem? BTW: the same problem is with ntippers and ntips. |
We show We should reset the nparticipants count for the current payday when we run it. |
Here's the fix:
|
Isn't it easier to just add this query to the end() of payday than trying to find the issue about it, not being able to, creating new, finally finding it, closing the new... 😉 |
That's a hacky fix, no? This updates all paydays, which is ugly to do every time, whether or not we need it. Better to fix this properly by ... whatever it would take. :-) /me out of CPU |
It is easy enough to update just the last one. And as for
let me disagree. We should spend as little time as possible on such a minor |
From #1915:
|
I started working on this, but if I'm going to fix this in code that means writing a test. This happens infrequently enough that I think that manually repairing is still the path of least resistance. We should be looking at |
What I am trying to say is that just tracking this problem here takes more |
This was fixed in the payday rewrite (#2508). |
The paydays table accumulates nparticipants while payday is being run. If the run dies and we rerun it, we end up double-counting people. Surfaced on #204.
The text was updated successfully, but these errors were encountered: