Skip to content

Commit

Permalink
Convert int parameters of request.get to str
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlimacz committed Jan 15, 2025
1 parent 8aa47b3 commit 931cfbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beanprice/sources/eastmoneyfund.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ def get_price_series(
for page in range(1, pages + 1):
query = {
"code": ticker,
"page": page,
"page": str(page),
"sdate": time_begin.astimezone(TIMEZONE).date().isoformat(),
"edate": time_end.astimezone(TIMEZONE).date().isoformat(),
"type": "lsjz",
"per": 30,
"per": str(30),
}
response = requests.get(base_url, params=query, headers=headers)
if response.status_code != requests.codes.ok:
Expand Down

0 comments on commit 931cfbc

Please sign in to comment.