nothere990 commited on
Commit
00c4bbe
·
1 Parent(s): 950d6aa

update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -60,7 +60,7 @@ async def xnxx_search(
60
  upload_time: Optional[str] = None,
61
  length: Optional[str] = None,
62
  mode: Optional[str] = None,
63
- page: Optional[int] = None,
64
  results: Optional[int] = 20
65
  ):
66
  data_dict = {
@@ -102,8 +102,8 @@ async def xnxx_search(
102
  if mode is not None:
103
  search_kwargs["mode"] = data_dict["mode"][mode]
104
 
105
- if page is not None:
106
- search_kwargs["limit"] = page
107
 
108
  # Perform the search with only the provided parameters
109
  search = xnxx_client().search(**search_kwargs)
@@ -125,14 +125,14 @@ async def xnxx_search(
125
  })
126
  return SuccessResponse(
127
  status="True",
128
- randydev={
129
  "results": results_list
130
  }
131
  )
132
  except Exception as e:
133
  return SuccessResponse(
134
  status="False",
135
- randydev={"error": f"Error: {e}"}
136
  )
137
 
138
  @app.get("/protected", responses={
 
60
  upload_time: Optional[str] = None,
61
  length: Optional[str] = None,
62
  mode: Optional[str] = None,
63
+ # page: Optional[int] = None,
64
  results: Optional[int] = 20
65
  ):
66
  data_dict = {
 
102
  if mode is not None:
103
  search_kwargs["mode"] = data_dict["mode"][mode]
104
 
105
+ # if page is not None:
106
+ # search_kwargs["limit"] = page
107
 
108
  # Perform the search with only the provided parameters
109
  search = xnxx_client().search(**search_kwargs)
 
125
  })
126
  return SuccessResponse(
127
  status="True",
128
+ data={
129
  "results": results_list
130
  }
131
  )
132
  except Exception as e:
133
  return SuccessResponse(
134
  status="False",
135
+ data={"error": f"Error: {e}"}
136
  )
137
 
138
  @app.get("/protected", responses={