rayolanderos / UT-APT-MiniProject

0 stars 0 forks source link

Trending #7

Closed rayolanderos closed 7 years ago

rayolanderos commented 7 years ago

Added the cron job to generate the trending rank every 5 minutes and remove timestamps older than 1 hour.

Added Trend generator script, for which I had to add a view list, a view list count and a ranking to the Stream model

Hooked the calls to the trending views which displays the ordered list with view counts.

Added logic to add view timestamp when view single is triggered

Added a cron job and accompanying script for user reports.

Modified "Trending" to update current user report preferences.

Created a "User" model to store the report preference variable. A user is created in the system after logging in if the user is non-existent.

Cleaned out some useless logging.

Notes:

gleono commented 7 years ago

We should evaluate merging the sending emails code. Thanks for creating the user model, that's a good place to store the subscriptions.