ramp_database.tools.leaderboard.update_user_leaderboards

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

Update the of a user leaderboards for a given event.

Parameters
sessionsqlalchemy.orm.Session

The session to directly perform the operation on the database.

event_namestr

The event name.

user_namestr

The user name. If None, scores from all users will be queried.

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.