feat: changing model before wheels
This commit is contained in:
parent
e5eb37d865
commit
5420826598
|
@ -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}")
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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})"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue