citizensandtech / CivilServant

CivilServant supports communities on reddit to conduct your own A/B tests on the effects of moderation practices, and share those results to an open repository of moderation experiments.
http://civilservant.io
MIT License
23 stars 5 forks source link

script to calculate a post's time on page #37

Closed mmou closed 8 years ago

mmou commented 8 years ago

addresses issues #30 and #31

note that i'm not sure where you think should actually go. so i put it in a separate file in the "app" folder for now. (location matters for imported files and connecting to database)

see function time_on_page documentation see the 3 QUESTION comments check out a test function call (last line, commented out)