mirror of
https://github.com/jaypyles/Scraperr.git
synced 2025-12-10 09:45:44 +00:00
feat: update docker compose to drop mongo
This commit is contained in:
@@ -57,8 +57,10 @@ async def retrieve_scrape_jobs(
|
||||
fetch_options: FetchOptions, user: User = Depends(get_current_user)
|
||||
):
|
||||
LOG.info(f"Retrieving jobs for account: {user.email}")
|
||||
ATTRIBUTES = "chat" if fetch_options.chat else "*"
|
||||
|
||||
try:
|
||||
job_query = "SELECT * FROM jobs WHERE user = ?"
|
||||
job_query = f"SELECT {ATTRIBUTES} FROM jobs WHERE user = ?"
|
||||
results = query(job_query, (user.email,))
|
||||
return JSONResponse(content=jsonable_encoder(results[::-1]))
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user