creativecolab / CommunityCrit

web app for online community engagement for urban design projects
http://cc.ucsd.edu
1 stars 1 forks source link

Idea queue #256

Closed reggiewumo closed 7 years ago

reggiewumo commented 7 years ago

pseudo algorithm: --do on every separate visit to menu page

  1. sort ideas by number of submissions
  2. separate sorted ideas array into 3 new arrays, save these in session
  3. take one idea from each array, and display the one at index 0

--on refresh:

  1. increment a pointer
  2. take the 3 arrays (stored in session), take one idea from each at index = pointer (using modulo to prevent index out of bounds)

closes #254