place xml in absolute location
This commit is contained in:
		@@ -6,7 +6,7 @@ use serde::Deserialize;
 | 
			
		||||
 | 
			
		||||
pub fn get(query: &str) -> Option<Entry> {
 | 
			
		||||
    // TODO Put this in a singleton
 | 
			
		||||
    let file = read_to_string("./HebrewLexicon/HebrewStrong.xml").unwrap();
 | 
			
		||||
    let file = read_to_string("/usr/local/bible/HebrewStrong.xml").expect("Failed to get the strong xml file. It's expect to be at:\n/usr/local/bible/HebrewString.xml\n\n");
 | 
			
		||||
    let obj: HebrewStrong = from_str(&file).unwrap();
 | 
			
		||||
 | 
			
		||||
    // Yes, dumb search is ok. Searching for the last element took 2ms
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user