For reasons that I have specified in the thread, I devoted myself to accomplishing this "simple" task:
https://lichess.org/forum/lichess-feedback/the-game-was-terminated-due-to-cheat-detected
After around 4 hours of tedious work, I learned far more about lichess than I thought I would.
For starters, I thought that just finding the right value for their their advanced search would cut it...
It took me 3 hours to try to make their advanced search "Query" work;
I couldn't for the life of me locate the definition of "Status", because it was an "interface" and not a class or anything, so my searches wouldn't hit anything no matter how hard I tried, and using too abstract searches I went through about 100 huge different files to no avail. Yeah, thanks scala, I love your keywords.
Note: of course I tried searching with regexes and grep in the repository, but that didnt do much help since i didnt know the exact formatting I was looking for, so I was either getting too many results or 0 results.
Eventually, I did a sample advanced search on my acc and found that "&status=32" means Stalemate, and I used that to locate:
https://github.com/lichess-org/lila/blob/master/ui/game/src/status.ts
(Why was status.ts in /ui again?)
Which had exactly what I wanted. But then I realized that even though the legitimate values were handled, "cheat" and "nostart" wouldn't work in searching. What a pain in the head, that is.
So, had my precious hours of work been in vain? NO. I suddenly got a flashback; I could have just exported all my games in the first place! So, I ended up doing that, and of course the Termination ways had to have the weirdest names possible (the cheats were labeled as "Rule infractions") just to ruin my searching. Thus I deductively replaced all normal termination texts and ended up isolating what I wanted, so I declare the "task" successful.
But seriously, dear @Lichess Devs, why can't you just enable searching for all the results and make our life easier?
Oh, and also I should mention your "Advanced Search" is overall broken, it doesnt show anything sometimes and needs like 20 refreshes to work. That's all, its 4 am and my head is spinning from looking at your code. Cheers~
This topic has been archived and can no longer be replied to.
