Skip to content

Commit

Permalink
Update virtual environment, create new validations
Browse files Browse the repository at this point in the history
- Removed langchain from virtual environment
- Updated dependencies, now on Pydantic V2
- Created new validation classes inheriting from BaseModel and ENUM
- Finished Request Body and POST requests - Pydantic pre-validators class
  • Loading branch information
AaronWChen committed Sep 5, 2024
1 parent d9865b7 commit 5dbc95f
Show file tree
Hide file tree
Showing 5 changed files with 550 additions and 252 deletions.
2 changes: 1 addition & 1 deletion main_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def bands(
band_list = [BandWithID(**b) for b in BANDS]

if genre:
band_list = [b for b in band_list if b.genre.lower() == genre.value]
band_list = [b for b in band_list if b.genre.value.lower() == genre.value]

if has_albums:
band_list = [b for b in band_list if len(b.albums) > 0]
Expand Down
Loading

0 comments on commit 5dbc95f

Please sign in to comment.