fix type for notificationIDList in _build_monitor_data() #57
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: DGNum/uptime-kuma-api#57
Loading…
Reference in a new issue
No description provided.
Delete branch "obfusk/fix-type"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The type here is incorrect. In
_build_monitor_data()
, thenotificationIDList
parameter is alist
, which then gets converted to adict
in_convert_monitor_input()
.The wrong type here doesn't actually affect anything as it is an empty
dict
and thus never processed in_convert_monitor_input()
, as an emptylist
would have been as well.But it's still technically the wrong type in that part of the code, and changing other parts of the code could result in that causing a bug at some point.
NB: I haven't tested this change yet.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.