Skip to content

Commit

Permalink
Merge pull request #38 from mBaratta96/develop
Browse files Browse the repository at this point in the history
fixed queries
  • Loading branch information
mBaratta96 authored Apr 13, 2023
2 parents ef95e01 + 114ea6f commit 80b4e2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions letterboxd_stats/tmdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

def get_person(name: str):
print(f"Searching for '{name}'")
search_results = search.people(name)
search_results = search.people({"query": name})
names = [result.name for result in search_results] # type: ignore
if len(names) == 0:
raise Exception("No results for your search")
Expand Down Expand Up @@ -45,7 +45,7 @@ def get_person(name: str):

def get_movie(movie_query: str):
print(f"Searching for movie '{movie_query}'")
search_results = search.movies(movie_query)
search_results = search.movies({"query": movie_query})
titles = [f"{result.title} ({result.release_date})" for result in search_results] # type: ignore
if len(titles) == 0:
raise Exception("No results for your search")
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ build-backend = "setuptools.build_meta"

[project]
name = "letterboxd_stats"
version = "0.1.5"
version = "0.1.6"
authors = [{ name = "mBaratta96" }]
description = "A small example package"
description = "Get information about your Letterboxd activity."
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.8"
Expand Down

0 comments on commit 80b4e2f

Please sign in to comment.