aspacek / Letterboxd

My repository for all my various Letterboxd routines.
0 stars 1 forks source link

Genres-league (and the rest too, probably) - main results not going to "no difference" #4

Closed aspacek closed 3 years ago

aspacek commented 3 years ago

There were no changes but it didn't trigger the "No Difference!" printout. I think there's an issue in this section where one of the comparisons is always different (maybe different types or something):

# Check if the results are different:
differentflag = 0
if sfgenres_print != savedgenres:
    differentflag = 1
elif sfavgratings_print != savedavgratings:
    differentflag = 1
elif sfseen_print != savedseen:
    differentflag = 1
elif sfrated_print != savedrated:
    differentflag = 1
elif sffilms_count != savedfilms_count:
    differentflag = 1
elif sffilms_print != savedfilms:
    differentflag = 1
aspacek commented 3 years ago

Fixed in Genres League here: https://github.com/aspacek/Letterboxd/commit/c4af92bd9de280b8d3e1a58548134aaefbc7bda8

About to do the same change in all the league routines.

aspacek commented 3 years ago

Done: https://github.com/aspacek/Letterboxd/commit/9a0761df611981ac40eb666b3dccd1314dc14fa5