feat: changing model before wheels

This commit is contained in:
Laureηt 2022-03-26 17:13:51 +01:00
parent e5eb37d865
commit 5420826598
No known key found for this signature in database
GPG key ID: D88C6B294FD40994
3 changed files with 3 additions and 3 deletions

View file

@ -216,7 +216,7 @@ def generate_loadouts():
hats = range(NB_HATS)
# create the loadouts iterator
loadouts = itertools.product(models_stickers, wheels, hats, teams, primary_colors, secondary_colors)
loadouts = itertools.product(wheels, models_stickers, hats, teams, primary_colors, secondary_colors)
nb_loadouts = sum(NB_STICKERS) * NB_WHEELS * NB_HATS * NB_PRIMARY_COLORS * NB_SECONDARY_COLORS * NB_TEAMS
logging.debug(f"number of loadouts: {nb_loadouts}")

View file

@ -52,7 +52,7 @@ if __name__ == "__main__":
elapsed = time.time()
# unpacking du loadout
((model, sticker), wheel, hat, team, primary_color, secondary_color) = loadout
(wheel, (model, sticker), hat, team, primary_color, secondary_color) = loadout
# modification de la voiture dans le garage
garage.newCar(model, sticker, wheel, hat, team, primary_color, secondary_color)

View file

@ -137,7 +137,7 @@ def screenshot() -> uuid.UUID:
def insert(database: sqlite3.Connection, uuid: uuid.UUID, loadout: tuple, x_rotation: int, y_rotation: int) -> None:
((model, sticker), wheel, hat, team, primary_color, secondary_color) = loadout
(wheel, (model, sticker), hat, team, primary_color, secondary_color) = loadout
database.execute(
f"INSERT INTO data VALUES ('{uuid}',{model},{team},{primary_color},{secondary_color},{hat},{sticker},{wheel},{x_rotation},{y_rotation})"
)