summaryrefslogtreecommitdiff
path: root/convert.py
diff options
context:
space:
mode:
Diffstat (limited to 'convert.py')
-rwxr-xr-xconvert.py26
1 files changed, 1 insertions, 25 deletions
diff --git a/convert.py b/convert.py
index 90f5a96..ab5b35d 100755
--- a/convert.py
+++ b/convert.py
@@ -4,31 +4,7 @@
import MySQLdb as mysql
import sqlite3
import sys
-
-class Definition(object):
-
- #ID is relative to the word type, eg noun 1, noun 2, verb 1, verb 2, not to the entire list
- id = 0
- word = ""
- dictionary = ""
- word_type = ""
- definition = ""
- uses = []
- synonyms = []
- antonyms = []
- categories = []
-
- def __init__(self, word, id, dictionary, word_type, definition, uses = [], synonyms = [], antonyms = [], categories= [], see_also = False):
- self.word = word
- self.id = id
- self.dictionary = dictionary
- self.word_type = word_type
- self.definition = definition
- self.uses = uses
- self.synonyms = synonyms
- self.antonyms = antonyms
- self.categories = categories
- self.see_also = see_also
+from definition import Definition
def create():
try: