levimack commited on
Commit
02a6a93
1 Parent(s): 7fa1f25

Update scripture_compare.py

Browse files
Files changed (1) hide show
  1. scripture_compare.py +5 -2
scripture_compare.py CHANGED
@@ -36,6 +36,7 @@ class Candidate:
36
 
37
  def compare(reference):
38
  candidates = []
 
39
  # Connect to the api and get the standard translation
40
  with urllib.request.urlopen(SEARCH_URL.format(urllib.parse.quote(reference), STANDARD_VERSION)) as url:
41
  response = json.load(url)
@@ -62,9 +63,11 @@ def compare(reference):
62
 
63
  candidate.compareText = result['text']
64
 
 
 
65
 
66
- standardTexts = []
67
- compareTexts = []
68
  for candidate in candidates:
69
  standardTexts.append(candidate.standardText)
70
  compareTexts.append(candidate.compareText)
 
36
 
37
  def compare(reference):
38
  candidates = []
39
+ candidateMap = {}
40
  # Connect to the api and get the standard translation
41
  with urllib.request.urlopen(SEARCH_URL.format(urllib.parse.quote(reference), STANDARD_VERSION)) as url:
42
  response = json.load(url)
 
63
 
64
  candidate.compareText = result['text']
65
 
66
+ # Isa 1:1 standardText: This is the book of Isaiah compareText: The book that Isaiah wrote.
67
+ # Isa 1:2 standardText: Isaiah was a good man compareText: Isaiah did what was right.
68
 
69
+ standardTexts = [] # 2 items This is the book of Isaiah, Isaiah was a good man
70
+ compareTexts = [] # 2 items The book that Isaiah wrote., Isaiah did what was right.
71
  for candidate in candidates:
72
  standardTexts.append(candidate.standardText)
73
  compareTexts.append(candidate.compareText)