place xml in absolute location
This commit is contained in:
parent
abda6bab95
commit
802cb43c1a
@ -6,7 +6,7 @@ use serde::Deserialize;
|
|||||||
|
|
||||||
pub fn get(query: &str) -> Option<Entry> {
|
pub fn get(query: &str) -> Option<Entry> {
|
||||||
// TODO Put this in a singleton
|
// 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();
|
let obj: HebrewStrong = from_str(&file).unwrap();
|
||||||
|
|
||||||
// Yes, dumb search is ok. Searching for the last element took 2ms
|
// Yes, dumb search is ok. Searching for the last element took 2ms
|
||||||
|
Loading…
x
Reference in New Issue
Block a user