Skip to content

Commit

Permalink
Another copy/paste error, removed some info logs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dajtxx committed Jul 17, 2024
1 parent 32c0ce4 commit ad745db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/www/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,6 @@ def DownloadData():
logging.info(f'adjusted end = {end}')

msgs = get_messages(token, l_uid, start, end)
logging.info(msgs)
if len(msgs) < 1:
return 'Success', 200

Expand Down
6 changes: 4 additions & 2 deletions src/www/app/utils/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,12 @@ def get_messages(token: str, l_uid: int, start_ts: Optional[datetime] = None, en
if start_ts is not None:
params['start'] = start_ts
if end_ts is not None:
params['end'] = start_ts
params['end'] = end_ts

response = requests.get(f'{end_point}/broker/api/messages', headers=headers, params=params)
logging.info(response)
if response.status_code != 200:
logging.error(response.json())

response.raise_for_status()
return response.json()

Expand Down

0 comments on commit ad745db

Please sign in to comment.