MLH-Fellowship / fellow-central

Earn points for yourself and your pod during the MLH Fellowship. Make your activities and participation count.
https://leagueoffellow.netlify.app/
MIT License
6 stars 1 forks source link

Add points #29

Closed cqvu closed 3 years ago

cqvu commented 3 years ago

Task(s)

Acceptance Criteria

Dependencies

Resources

Notes

luiszugasti commented 3 years ago

pseudo code for that (Should get you all the events you need within the last day) This one will get you the amount of hits from the engine, I mean you could also just add a boolean from there and should be good to go.

SELECT COUNT(*) FROM ( SELECT * FROM events WHERE timestamp < {predefined_time_stamp} AND timestamp > {predefined_time_stamp - 24 hours} ) ->>> gets you the count :)

cqvu commented 3 years ago

Removing the "Increment total points for the User" requirement because we decided to remove points_total for the user model to reduce redundancy