Skip to content

Commit

Permalink
fix: disable reindexing. wip. change get items endpoint to use id ins…
Browse files Browse the repository at this point in the history
…tead of imdbid.
  • Loading branch information
dreulavelle committed Nov 11, 2024
1 parent 139d936 commit 5123567
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/program/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def _reindex_ongoing(self) -> None:
def _schedule_functions(self) -> None:
"""Schedule each service based on its update interval."""
scheduled_functions = {
self._reindex_ongoing: {"interval": 60 * 60 * 24},
# self._reindex_ongoing: {"interval": 60 * 60 * 24},
self._retry_library: {"interval": 60 * 60 * 24},
log_cleaner: {"interval": 60 * 60},
vacuum_and_analyze_index_maintenance: {"interval": 60 * 60 * 24},
Expand Down
2 changes: 1 addition & 1 deletion src/routers/secure/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ async def get_item(_: Request, id: str, use_tmdb_id: Optional[bool] = False) ->
if use_tmdb_id:
query = query.where(MediaItem.tmdb_id == id)
else:
query = query.where(MediaItem.imdb_id == id)
query = query.where(MediaItem.id == id)
item = session.execute(query).unique().scalar_one()
except NoResultFound:
raise HTTPException(status_code=404, detail="Item not found")
Expand Down

0 comments on commit 5123567

Please sign in to comment.