Skip to content

Commit

Permalink
use Language model
Browse files Browse the repository at this point in the history
  • Loading branch information
interrogator committed Dec 13, 2019
1 parent 678f8d9 commit 8055a26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion explore/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def from_json(cls, jsondata, corpus_name):
return corp
except cls.DoesNotExist:
pass
language = jsondata.get("language")
language = Language(name=jsondata.get("language"))
language.save()
path = jsondata.get("path")
desc = jsondata.get("desc", "")
length = jsondata.get("length")
Expand Down

0 comments on commit 8055a26

Please sign in to comment.