This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @PostMapping("/link/submit") | |
| public String createLink(@Valid Link link, BindingResult bindingResult, Model model, RedirectAttributes redirectAttributes){ | |
| User user = null; | |
| Optional optionalemail = BeanUtil.getBean(AuditorAwareImpl.class).getCurrentAuditor(); | |
| if(optionalemail.isPresent()) { | |
| Optional optionalUser = userRepository.findByEmail((String) optionalemail.get()); | |
| if(optionalUser.isPresent()){ | |
| user = (User) optionalUser.get(); | |
| }else{ | |
| user = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # Script for assigning the date of a track in a GPX file as track name. | |
| # | |
| # Usage e.g $ python ChangeGpxTrackName.py source.gpx target.gpx" | |
| # | |
| # Peter Vasil | |
| # Date: 2011-02-05 | |
| from optparse import OptionParser |