Skip to content

Commit

Permalink
hehe uwu
Browse files Browse the repository at this point in the history
  • Loading branch information
GodCipher committed Sep 25, 2023
1 parent 0534cee commit c547eff
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ public void postGames(@PathVariable String apiKey, @RequestBody GameDto[] gameDt
for (GameDto gameDto : gameDtos) {
gameDao.saveGameData(gameDto);
}
}, gameDtos.length + " games has been saved to the database. " + getSuffix());
}, gameDtos.length + " games has been saved to the database. "
+ printDataStatusIfAllowedToDamnKinkySubmissive());
});
}

Expand All @@ -69,8 +70,8 @@ public DeferredResult<ResponseEntity<?>> getGameCount(@PathVariable String apiKe
private boolean couldNotVerifyApiKey(String key) {
return !Webservice.getApiKey().equals(key);
}
private String getSuffix() {

private String printDataStatusIfAllowedToDamnKinkySubmissive() {
if(System.currentTimeMillis() - lastUpdate > 300000) { // 5 min
lastUpdate = System.currentTimeMillis();
return "(Datenstand:" + gameDao.getTotalGameCount() + ")";
Expand Down

0 comments on commit c547eff

Please sign in to comment.