From f46fb3d4cc656dd7610426b1d1869825bbea738d Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Thu, 31 May 2018 12:40:41 +0100 Subject: [PATCH] Bug fix get_span. --- sourcing/parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sourcing/parse.py b/sourcing/parse.py index f2f258a..034c04f 100644 --- a/sourcing/parse.py +++ b/sourcing/parse.py @@ -22,7 +22,7 @@ def get_span(text, url, start, length): 'url': url, 'start': start, 'length': length, - 'text': text[url][start:start + length] + 'text': text[url]['text'][start:start + length] } def get_urls(spans):