Olympiad database load adjustments.
This commit is contained in:
		@@ -145,6 +145,7 @@ public class Olympiad extends ListenersContainer
 | 
			
		||||
	private void load()
 | 
			
		||||
	{
 | 
			
		||||
		NOBLES.clear();
 | 
			
		||||
		
 | 
			
		||||
		boolean loaded = false;
 | 
			
		||||
		try (Connection con = DatabaseFactory.getConnection();
 | 
			
		||||
			PreparedStatement statement = con.prepareStatement(OLYMPIAD_LOAD_DATA);
 | 
			
		||||
@@ -167,7 +168,7 @@ public class Olympiad extends ListenersContainer
 | 
			
		||||
		
 | 
			
		||||
		if (!loaded)
 | 
			
		||||
		{
 | 
			
		||||
			LOGGER.info("Olympiad System: Failed to load data from database, trying to load from file.");
 | 
			
		||||
			// LOGGER.info("Olympiad System: Failed to load data from database, trying to load from file.");
 | 
			
		||||
			
 | 
			
		||||
			final Properties olympiadProperties = new Properties();
 | 
			
		||||
			try (InputStream is = new FileInputStream(Config.OLYMPIAD_CONFIG_FILE))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user