TonyLHansen / atastandings

ATA (American Taekwondo Association) World and State Standings Printer
MIT License
0 stars 1 forks source link

Using internal search function (-s) invalidates placement results #1

Open derekatkins opened 1 month ago

derekatkins commented 1 month ago

if I use the internal search function to limit results to a particular person, the "place" value fails. It looks like the place value is computed AFTER the search results instead of BEFORE the search results. For example, if I search the southeast district and use 'grep' to limit the output, I see the following (which shows the district standings):

$ atastandings -d southeast -c BCOB | grep -i atkins
 1 ISAAC ATKINS 55 SANDY SPRINGS, GA
 1 ISAAC ATKINS 40 SANDY SPRINGS, GA
 32 ISAAC ATKINS 7 SANDY SPRINGS, GA
 8 ISAAC ATKINS 25 SANDY SPRINGS, GA
 1 ISAAC ATKINS 67 SANDY SPRINGS, GA
 1 ISAAC ATKINS 42 SANDY SPRINGS, GA
 1 ISAAC ATKINS 54 SANDY SPRINGS, GA
 2 ISAAC ATKINS 39 SANDY SPRINGS, GA

whereas if I use the internal search, the standings return '1' in all cases (NB: the extra grep at the end is just to limit the output):

$ atastandings -d southeast -c BCOB -s atkins | grep -i atkins
 1 ISAAC ATKINS 55 SANDY SPRINGS, GA
 1 ISAAC ATKINS 40 SANDY SPRINGS, GA
 1 ISAAC ATKINS 7 SANDY SPRINGS, GA
 1 ISAAC ATKINS 25 SANDY SPRINGS, GA
 1 ISAAC ATKINS 67 SANDY SPRINGS, GA
 1 ISAAC ATKINS 42 SANDY SPRINGS, GA
 1 ISAAC ATKINS 54 SANDY SPRINGS, GA
 1 ISAAC ATKINS 39 SANDY SPRINGS, GA
TonyLHansen commented 1 month ago

This will take some investigation to see what could be done