Jump to content
  • 0

Olympic Ranking Update - Acys 368


Question

Posted

Good afternoon mxc I found this mod in a forum, where it updates the ranking of the olympiadas daily, I wanted to modify it so that it updates every 1 hour during the period of the olympiads, how would it have to stay?

 

 

- private static final String GET_EACH_CLASS_LEADER = "SELECT characters.char_name from olympiad_nobles_eom, characters WHERE characters.obj_Id = olympiad_nobles_eom.char_id AND olympiad_nobles_eom.class_id = ? AND olympiad_nobles_eom.competitions_done >= " + Config.ALT_OLY_MIN_MATCHES + " ORDER BY olympiad_nobles_eom.olympiad_points DESC, olympiad_nobles_eom.competitions_done DESC, olympiad_nobles_eom.competitions_won DESC LIMIT 10";

+ private static final String GET_EACH_CLASS_LEADER_CURRENT = "SELECT characters.char_name from olympiad_nobles, characters "
"WHERE characters.obj_Id = olympiad_nobles.char_id AND olympiad_nobles.class_id = ? "
"AND olympiad_nobles.competitions_done >= 9 "
"ORDER BY olympiad_nobles.olympiad_points DESC, olympiad_nobles.competitions_done DESC LIMIT 10";

 

- PreparedStatement statement = con.prepareStatement(GET_EACH_CLASS_LEADER);

+ PreparedStatement statement = con.prepareStatement(GET_EACH_CLASS_LEADER_CURRENT);

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock