-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from CS222-UIUC/minh/fixes_database
Minh/Touch up app.py and fix decorator test
- Loading branch information
Showing
7 changed files
with
33 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"""Contains dataclasses for mainpage get requests""" | ||
from dataclasses import dataclass | ||
from typing import Union | ||
|
||
|
||
@dataclass | ||
class GetRequestType: | ||
"""Specific action of the request""" | ||
|
||
is_search: bool | ||
is_populate: bool | ||
is_review: bool | ||
is_pictures: bool | ||
|
||
|
||
@dataclass | ||
class Params: | ||
"""Other request parameters""" | ||
|
||
num_apts: Union[int, None] | ||
apt_id: Union[int, None] | ||
search_query: Union[str, None] | ||
rating_sort: Union[int, None] | ||
price_sort: Union[int, None] |
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
9c3d454
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report
9c3d454
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report
9c3d454
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage Report