Skip to content

Commit

Permalink
Change duration with distance for stargate data (#26)
Browse files Browse the repository at this point in the history
## Description

In previous PR I kinda mess up distance and duration in stargate
template. This PR fixes it.

## Type of Change

* Bug fix (non-breaking change which fixes an issue)

## Checklist

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my own code

Signed-off-by: Jakub Stejskal <[email protected]>
  • Loading branch information
Frawless authored Jul 22, 2024
1 parent 8053bcf commit 58b0382
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ public static String generateData() {
starGate.setSourcePlanet(FAKER.stargate().planets());
starGate.setTargetPlanet(FAKER.stargate().planets());
starGate.setQuote(FAKER.stargate().quotes());
starGate.setDistance(FAKER.number().numberBetween(1, 50));
starGate.setDistanceUnit("light_year");
starGate.setDuration(FAKER.number().numberBetween(20000, 999999));
starGate.setDuration(FAKER.number().numberBetween(1, 50));
starGate.setDurationUnit("seconds");
starGate.setDistance(FAKER.number().numberBetween(20000, 999999));
starGate.setDistanceUnit("light_year");

return starGate.toString();
}
Expand Down

0 comments on commit 58b0382

Please sign in to comment.