module CrystalGauntlet::CreatorPoints

Extended Modules

Defined in:

lib/creator_points.cr

Constant Summary

QUERIES = StaticArray[{"select count(*) from levels where user_id = ? and stars is not null", "levels.creator_points.rated"}, {"select count(*) from levels where user_id = ? and featured = 1", "levels.creator_points.featured"}, {"select count(*) from levels where user_id = ? and epic = 1", "levels.creator_points.epic"}, {"select count(*) from daily_levels join levels on levels.id = level_id where levels.user_id = ?", "levels.creator_points.daily"}, {"select count(*) from weekly_levels join levels on levels.id = level_id where levels.user_id = ?", "levels.creator_points.weekly"}, {"select count(*) from map_pack_links join levels on levels.id = level_id where levels.user_id = ?", "levels.creator_points.mappack"}, {"select count(*) from gauntlet_links join levels on levels.id = level_id where levels.user_id = ?", "levels.creator_points.gauntlet"}]

Instance Method Summary

Instance Method Detail

def calculate_creator_points(user_id : Int32) #

[View source]
def update_creator_points(user_id : Int32) #

[View source]