1. Tim Sherratt
  2. Trove tools

Commits

Tim Sherratt  committed 13b3e85

Minor bug fix

  • Participants
  • Parent commits 29c973c
  • Branches default

Comments (0)

Files changed (1)

File src/trovenewspapers/bin/do_totals.py

View file
  • Ignore whitespace
             news.search(url=this_query)
             total_all = int(string.replace(news.total_results, ',', ''))
             ratios[year] = float(total) / total_all
+            print '%s total: %s' % (year, total_all)
+            print 'Ratio: %s' % ratios[year]
         else:
             ratios[year] = 0
-        print '%s total: %s' % (year, total_all)
-        print 'Ratio: %s' % ratios[year]
         time.sleep(1)
     total_list = [[year, total] for year, total in totals.items()]
     ratio_list = [[year, value] for year, value in ratios.items()]