Showing 2 of 2 files from the diff.
@@ -210,8 +210,8 @@
Loading
210 | 210 | "Barry Pain’s “Exit Eliza” (1912)" |
|
211 | 211 | ||
212 | 212 | # add second author |
|
213 | - | auth2 = Person.objects.create(name='Lara Cain', sort_name='Cain, Lara', |
|
214 | - | slug='cain') |
|
213 | + | auth2 = Person.objects.create(name='Ms. Lara Cain', |
|
214 | + | sort_name='Cain, Lara', slug='cain') |
|
215 | 215 | author = CreatorType.objects.get(name='Author') |
|
216 | 216 | Creator.objects.create(person=auth2, work=exit_eliza, |
|
217 | 217 | creator_type=author, order=2) |
@@ -233,8 +233,8 @@
Loading
233 | 233 | blue_train = Work.objects.get(pk=5) |
|
234 | 234 | ||
235 | 235 | # add editor |
|
236 | - | ed1 = Person.objects.create(name='Lara Cain', sort_name='Cain, Lara', |
|
237 | - | slug='cain') |
|
236 | + | ed1 = Person.objects.create(name='Ms. Lara Cain', |
|
237 | + | sort_name='Cain, Lara', slug='cain') |
|
238 | 238 | editor = CreatorType.objects.get(name='Editor') |
|
239 | 239 | Creator.objects.create(person=ed1, work=blue_train, |
|
240 | 240 | creator_type=editor, order=1) |
@@ -191,7 +191,7 @@
Loading
191 | 191 | # all tweets start the same way |
|
192 | 192 | prolog = '#100YearsAgoToday on %s at Shakespeare and Company, ' % \ |
|
193 | 193 | day.strftime(Command.date_format) |
|
194 | - | # handle shared accountsr |
|
194 | + | # handle shared accounts |
|
195 | 195 | member_name = ' and '.join(m.firstname_last |
|
196 | 196 | for m in ev.account.persons.all()) |
|
197 | 197 | tweet_info = { |
@@ -269,10 +269,10 @@
Loading
269 | 269 | # handle multiple authors |
|
270 | 270 | if len(work.authors) <= 2: |
|
271 | 271 | # one or two: join by and |
|
272 | - | author = ' and '.join([a.name for a in work.authors]) |
|
272 | + | author = ' and '.join([a.firstname_last for a in work.authors]) |
|
273 | 273 | else: |
|
274 | 274 | # more than two: first name et al |
|
275 | - | author = '%s et al.' % work.authors[0].name |
|
275 | + | author = '%s et al.' % work.authors[0].firstname_last |
|
276 | 276 | parts.append('%s’s' % author) |
|
277 | 277 | ||
278 | 278 | # if no author but editors, we will include editor |
@@ -295,10 +295,10 @@
Loading
295 | 295 | if include_editors: |
|
296 | 296 | if len(work.editors) <= 2: |
|
297 | 297 | # one or two: join by and |
|
298 | - | editor = ' and '.join([ed.name for ed in work.editors]) |
|
298 | + | editor = ' and '.join([ed.firstname_last for ed in work.editors]) |
|
299 | 299 | else: |
|
300 | 300 | # more than two: first name et al |
|
301 | - | editor = '%s et al.' % work.editors[0].name |
|
301 | + | editor = '%s et al.' % work.editors[0].firstname_last |
|
302 | 302 | parts.append('edited by %s' % editor) |
|
303 | 303 | ||
304 | 304 | # include work year if known not before 1500 |
Files | Coverage |
---|---|
mep | 98.44% |
srcmedia/ts | 86.55% |
Project Totals (223 files) | 98.01% |
2458.1
TRAVIS_PYTHON_VERSION=3.5 TRAVIS_OS_NAME=linux
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.