Changed code and refactored get_filtered_notes out to its own function.
Changed code and refactored get_filtered_notes out to its own function.

AlexanderThaller/lablog-rs,AlexanderThaller/lablog-rs,AlexanderThaller/lablog-rs