letterboxd-tools icon indicating copy to clipboard operation
letterboxd-tools copied to clipboard

Cannot iterate on float in _show_posters

Open EthanDocherty opened this issue 1 year ago • 0 comments

Not sure where the best place to report this bug is, was hoping I could figure it out and submit a pull request but seems this repo is on an older version with just a placeholder. Getting this error. The issue seems to be when comparing to an account that has seen the same sort of highly rated films it errors when trying to get more films. Steps to reproduce: Compare my letterboxd account (orbitalaxolotl) to an account with a high amount of ratings (davidehrlich worked).

A similar error occurred when trying martinscorcese when generating a rating average, as he hasn't rated any films TypeError: argument of type 'float' is not iterable Traceback:

File "/home/ubuntu/.local/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 534, in _run_script exec(code, module.dict) File "/home/ubuntu/letterboxd-tools-v2/toolboxd/pages/6_🌡️_Film_taste_compatibility_test.py", line 278, in page.run() File "/home/ubuntu/letterboxd-tools-v2/toolboxd/pages/6_🌡️_Film_taste_compatibility_test.py", line 270, in run self.show_missed_faves() File "/home/ubuntu/letterboxd-tools-v2/toolboxd/pages/6_🌡️_Film_taste_compatibility_test.py", line 144, in show_missed_faves self._show_posters(self.user1_missed_faves.head(12), 6, show_title=False) File "/home/ubuntu/letterboxd-tools-v2/toolboxd/Page.py", line 28, in _show_posters while '**' in movie_name:

EthanDocherty avatar Nov 22 '23 00:11 EthanDocherty