Skip to content

Instantly share code, notes, and snippets.

@foxxtrot
Created October 18, 2010 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foxxtrot/632667 to your computer and use it in GitHub Desktop.
Save foxxtrot/632667 to your computer and use it in GitHub Desktop.
for x in ($goal_db:all_entries())
row = $goal_db:find_exact(x);
temp = {};
index = length(row);
starttime = time() - 432000;
while (index > 0 && row[index][1] > starttime )
temp = listappend(temp, row);
index = index - 1;
endwhile
"At this point, temp contains all the entries for player X made in the last 5 days.";
endfor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment