Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Knispel2 authored Dec 5, 2024
1 parent 964c609 commit 32ff0d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fink_filters/filter_anomaly_notification/filter_utils.py
Original file line number Diff line number Diff line change
@@ -300,8 +300,9 @@ def load_to_anomaly_base(data, model):
access_token = json.loads(res.text)['access_token']
tg_id_data = requests.get(url=f'https://fink.matwey.name:443/user/get_tgid/{username}')
if status_check(tg_id_data, 'tg_id loading'):
tg_id_data = tg_id_data.content.decode('utf-8')
tg_id_data = int(tg_id_data.replace('"', ''))
if 'ND' not in tg_id_data:
tg_id_data = tg_id_data.content.decode('utf-8')
tg_id_data = int(tg_id_data.replace('"', ''))
else:
tg_id_data = 'ND'

2 comments on commit 32ff0d1

@Knispel2
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accidentally made a commit in master, sorry

@Knispel2
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix in #213

Please sign in to comment.