Skip to content

Commit 3f00fef

Browse files
author
Andrew Brookins
committed
Rename the refresh API function
1 parent 4d559fb commit 3f00fef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ async def calculate_three_hours_of_data(keys: Keys) -> Dict[str, str]:
187187

188188

189189
@app.post('/refresh')
190-
async def bitcoin(background_tasks: BackgroundTasks, keys: Keys = Depends(make_keys)):
190+
async def refresh(background_tasks: BackgroundTasks, keys: Keys = Depends(make_keys)):
191191
async with httpx.AsyncClient() as client:
192192
data = await client.get(SENTIMENT_API_URL)
193193
await persist(keys, data.json())

0 commit comments

Comments
 (0)