Merge branch 'develop' of https://bitbucket-student.it.hs-heilbronn.de/scm/labswp19/labswp_2019_sose_geocaching into develop
This commit is contained in:
commit
e64b607276
@ -706,6 +706,8 @@ public class Controller {
|
||||
// verlässt team
|
||||
user_info.setTeam(null);
|
||||
|
||||
user_infoRepository.save(user_info);
|
||||
|
||||
//int i = 0;
|
||||
// zählt teammitglieder
|
||||
List<User_Info> user_infos = user_infoRepository.findByTeam(team);
|
||||
@ -720,8 +722,6 @@ public class Controller {
|
||||
teamRepository.delete(team);
|
||||
}
|
||||
|
||||
user_infoRepository.save(user_info);
|
||||
|
||||
return ResponseEntity.status(200).body("Ok");
|
||||
}
|
||||
|
||||
|
||||
@ -85,12 +85,12 @@ public class CacheConstructionUtil {
|
||||
return ResponseEntity.status(400).body("station fields can´t be empty");
|
||||
}
|
||||
|
||||
if (station.getLattitude() < -90 || station.getLattitude() > 90) {
|
||||
return ResponseEntity.status(400).body("Lattitude has to be between -90 and 90 Degree");
|
||||
if (station.getLattitude() < 9 || station.getLattitude() > 10) {
|
||||
return ResponseEntity.status(400).body("Lattitude has to be between 9 and 10 degrees");
|
||||
}
|
||||
|
||||
if (station.getLongitude() < -180 || station.getLongitude() > 180) {
|
||||
return ResponseEntity.status(400).body("Longitude has to be in the range of -180 to 180 degrees");
|
||||
if (station.getLongitude() < 49 || station.getLongitude() > 50) {
|
||||
return ResponseEntity.status(400).body("Longitude has to be in the range of 49 to 50 degrees");
|
||||
}
|
||||
|
||||
Random r = new Random();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user