Mercurial > hg > rlgallery-misc
comparison web/scoring/high.cgi @ 72:1d8dc3ed22cf
Restore the default size of the high score list.
In an era of megabyte JavaScript libraries, ten lines of text is not
too much.
| author | John "Elwin" Edwards | 
|---|---|
| date | Sun, 20 Mar 2016 07:59:22 -0400 | 
| parents | 6592cdd1fceb | 
| children | 
   comparison
  equal
  deleted
  inserted
  replaced
| 71:18d0b3441a08 | 72:1d8dc3ed22cf | 
|---|---|
| 29 except ValueError: | 29 except ValueError: | 
| 30 start = 0 | 30 start = 0 | 
| 31 if start < 0: | 31 if start < 0: | 
| 32 start = 0 | 32 start = 0 | 
| 33 | 33 | 
| 34 deflimit = (12 // len(games)) * 5 | 34 deflimit = 10 | 
| 35 formlimit = cgidata.getfirst("l") | 35 formlimit = cgidata.getfirst("l") | 
| 36 if not formlimit: | 36 if not formlimit: | 
| 37 limit = deflimit | 37 limit = deflimit | 
| 38 else: | 38 else: | 
| 39 try: | 39 try: | 
