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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...