Function rank

Source
pub fn rank(
    upvotes: &i32,
    downvotes: &i32,
    timestamp: DateTime<Utc>,
    epoch: DateTime<Utc>,
) -> i32
Expand description

Calculate the relevancy of an item based on upvotes, downvotes, a current timestamp and the epoch at which the program is first run (e.g. no value can be lower than that).