mergin for the marks inserted.

This commit is contained in:
damien DELPY 2024-11-27 20:52:10 +01:00
commit f4d7d9be41
No known key found for this signature in database
3 changed files with 6653 additions and 6450 deletions

View File

@ -238,7 +238,7 @@ def generate_line_necessiter(idModele : str, idPiece : str,
return construct_line(idModele, idPiece, quantite)
def generate_line_noter(idModele : str, idMembre : str) -> str:
note : str = "\'" + random_element(pathSentences) + "\'"
note : str = str(random.randint(0, 5))
return construct_line(idModele, idMembre, note)
@ -248,9 +248,9 @@ def generate_line_perdre(idMembre : str, idBoite : str,
def generate_line_tags() -> str:
idTag : str = give_not_used_key(idTagDict)
valeurTag : str = str(random.randint(0, 5))
nomTag : str = "\'" + random_element(pathWords) + "\'"
return construct_line(idTag, valeurTag)
return construct_line(idTag, nomTag)
def generate_line_varier(idModele_1 : str, idModele_et : str) -> str:
return construct_line(idModele_1, idModele_et)

View File

@ -159,7 +159,7 @@ CREATE TABLE noter
id_modele INTEGER ,
id_membre INTEGER ,
-- a mark between 0 and 5.
note_noter VARCHAR(255) NOT NULL,
note_noter INTEGER NOT NULL,
CONSTRAINT pk__noter PRIMARY KEY (id_modele, id_membre)
);
@ -175,7 +175,7 @@ CREATE TABLE perdre
CREATE TABLE tags
(
id_tag SERIAL ,
valeur_tag INTEGER ,
valeur_tag VARCHAR(255) ,
CONSTRAINT pk__tags PRIMARY KEY (id_tag)
);

File diff suppressed because it is too large Load Diff