1. luastoned
  2. Facepunch Lua API


luastoned  committed 7c9db9e

Fixed usage of an obsolete function in highestratings.lua.

  • Participants
  • Parent commits 35358be
  • Branches default

Comments (0)

Files changed (1)

File test/highestratings.lua

View file
 local startTime = os.time()
-for i = 1, thread.getNumberOfPages( threadPage ) do
+local _, pageCount = thread.getPaginationInfo( threadPage )
+for i = 1, pageCount do
   -- Andrew; This condition allows us to reuse the first page we just got
   -- above when we had to find out how many pages the thread had, so we could
   -- establish how many times to execute this loop. By checking if threadPage