Skip to content

Commit

Permalink
Merge branch 'search-projects' of github.com:hotosm/fmtm into search-…
Browse files Browse the repository at this point in the history
…projects
  • Loading branch information
sujanadh committed Nov 21, 2023
2 parents e971c22 + 674bb37 commit a9868df
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/backend/app/projects/project_crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def get_projects(
limit: int = 100,
db_objects: bool = False,
hashtags: List[str] = None,
search:str = None,
search: str = None,
):
filters = []
if user_id:
Expand Down Expand Up @@ -117,7 +117,12 @@ def get_projects(


def get_project_summaries(
db: Session, user_id: int, skip: int = 0, limit: int = 100, hashtags: str = None, search: str = None,
db: Session,
user_id: int,
skip: int = 0,
limit: int = 100,
hashtags: str = None,
search: str = None,
):
# TODO: Just get summaries, something like:
# db_projects = db.query(db_models.DbProject).with_entities(
Expand Down

0 comments on commit a9868df

Please sign in to comment.