minor bugs
This commit is contained in:
parent
4c8fcc4eb1
commit
a04a7d0ba9
@ -12,7 +12,6 @@ app.config.update(
|
||||
try:
|
||||
with open("save.p", "rb") as f:
|
||||
database = pickle.load(f)
|
||||
print("Loaded", database)
|
||||
except (FileNotFoundError) as e:
|
||||
database = {'languages': [],
|
||||
'phonemes': [],
|
||||
|
||||
@ -66,11 +66,10 @@ function getData() {
|
||||
console.log(e);
|
||||
}
|
||||
);
|
||||
console.log(data);
|
||||
}
|
||||
|
||||
function language(language) {
|
||||
return data.languages.filter(function(element) {
|
||||
return data.values.filter(function(element) {
|
||||
return element.name === language;
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user