- Estrazione dei dati da Amazon

- Ciclo di Estrapolazione di tutti i prodotti ed aggiornamento dei campi scraped e scraped_updated
- Creazione file CSV con i campi modificati.
This commit is contained in:
Surya Paolo
2025-05-19 17:33:18 +02:00
parent 859ba022fa
commit 8ff204657e
13 changed files with 2200 additions and 572 deletions

View File

@@ -270,6 +270,18 @@ export default defineComponent({
dense: true,
showall: true,
},
{
editOn: true,
label: 'Imagefile',
table: 'productinfos',
id: myproduct.value.productInfo._id, // ID dinamico, da sostituire con il valore reale
rec: myproduct.value.productInfo, // Oggetto dinamico, da sostituire con il valore reale
mykey: 'imagefile',
debounce: '1000',
type: costanti.FieldType.string,
dense: true,
showall: true,
},
];
return arrlist;
@@ -310,17 +322,6 @@ export default defineComponent({
type: costanti.FieldType.string,
dense: true,
},
/*{
editOn: true,
label: "Pagine",
table: "arrvariazioni",
id: myproduct.value._id,
rec: myproduct.value,
mykey: "data_verifica",
debounce: "0",
type: costanti.FieldType.date,
dense: true,
},*/
{
editOn: false,
label: 'Pubblicazione',
@@ -478,7 +479,18 @@ export default defineComponent({
table: 'products',
id: myproduct.value._id,
rec: myproduct.value,
mykey: 'scraped',
mykey: 'scraped_date',
debounce: '1000',
type: costanti.FieldType.data,
dense: true,
},
{
editOn: false,
label: 'Err Scraped',
table: 'products',
id: myproduct.value._id,
rec: myproduct.value,
mykey: 'scraped_error',
debounce: '1000',
type: costanti.FieldType.boolean,
dense: true,
@@ -611,6 +623,8 @@ export default defineComponent({
.then((dataupdated) => {
if (dataupdated) {
tools.showPositiveNotif($q, t('dbgm.scrapingOkUpdated'));
} else {
tools.showNeutralNotif($q, t('dbgm.scrapingNotUpdated'));
}
return dataupdated;
})