ramp_database.tools.leaderboard.update_all_user_leaderboards

ramp_database.tools.leaderboard.update_all_user_leaderboards(session, event_name, new_only=False)

Update the leaderboards for all users for a given event.

Parameters
sessionsqlalchemy.orm.Session

The session to directly perform the operation on the database.

event_namestr

The event name.

new_onlybool, default is False

Whether or not to update the whole leaderboards or only the new submissions. You can turn this option to True when adding a new submission in the database.