Skip to content

Commit e854b9b

Browse files
committed
tweak
1 parent abc6e8d commit e854b9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

god_frame.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def canonize_title(title):
2525
scraped = True
2626
inf_raw, inf_comp = common.get_inf_ratio(song)
2727
ratio = inf_raw / inf_comp
28+
assert raw == inf_raw, "{} != {}".format(raw, inf_raw)
2829
except common.NotScrapedException:
2930
raw = comp = None
3031
scraped = False
@@ -33,7 +34,7 @@ def canonize_title(title):
3334
if canon_title not in title_to_row:
3435
row = dict(artist=song.artist, title=canon_title, date=song.earliest,
3536
peak=song.peakPos, scraped=scraped,
36-
raw=raw, comp=comp, iraw=inf_raw, icomp=inf_comp, ratio=ratio,
37+
raw=raw, comp=comp, icomp=inf_comp, ratio=ratio,
3738
)
3839
title_to_row[canon_title] = row
3940
# Got a dupe. Merge them.

0 commit comments

Comments
 (0)