diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-12-14 02:31:14 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-12-14 02:31:14 +0100 |
| commit | 45e0625bcbc2c7f041b8c5d177c5dcf487f07d26 (patch) | |
| tree | 728353b00677a865679e72429dfe6b200dc57100 /scraper/util.py | |
| parent | 3ab28a3ff3d0e1b71f123e38ce3d0df42caddc7c (diff) | |
new reports
Diffstat (limited to 'scraper/util.py')
| -rw-r--r-- | scraper/util.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scraper/util.py b/scraper/util.py index e9fdd49f..a435f91a 100644 --- a/scraper/util.py +++ b/scraper/util.py @@ -89,6 +89,8 @@ def write_report(fn, title=None, keys=None, rows=[]): print("{} {}".format(fn, count)) def percent(m, n): + if n == 0: + return 100 return round(m / n * 100) class NameLine(object): |
