add tags from ADL
This commit is contained in:
parent
bea58afa1e
commit
3f44754e94
@ -23,9 +23,9 @@ const parserConfig = {
|
|||||||
// enableFetch: false,
|
// enableFetch: false,
|
||||||
dev_mode: true, // dev mode uses localhost instance of mobilizon running on port 4000
|
dev_mode: true, // dev mode uses localhost instance of mobilizon running on port 4000
|
||||||
limit_persistence_of_new_events:true,
|
limit_persistence_of_new_events:true,
|
||||||
max_new_events_in_scrapping: 10,
|
max_new_events_in_scrapping: 20,
|
||||||
max_new_events: 2,
|
max_new_events: 2,
|
||||||
bearer_token: "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJtb2JpbGl6b24iLCJleHAiOjE2NDIwODA2NTAsImlhdCI6MTY0MjA3OTc1MCwiaXNzIjoibW9iaWxpem9uIiwianRpIjoiYmZjNWFkNjMtODA2NS00Y2FhLWJiY2EtYzA2MDZkNDEwNDdlIiwibmJmIjoxNjQyMDc5NzQ5LCJzdWIiOiJVc2VyOjEiLCJ0eXAiOiJhY2Nlc3MifQ.Ar5oUTs0cFOEkznYmhXgrFkGRQv4yJm34lN_gkNSrCTrvXfRBTID4YzIrbzvKOkYvIZmw0dHb7gu1WO_tATBkQ",
|
bearer_token: "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJtb2JpbGl6b24iLCJleHAiOjE2NDIwODE1MTksImlhdCI6MTY0MjA4MDYxOSwiaXNzIjoibW9iaWxpem9uIiwianRpIjoiOWNiNTU2MDUtZDJhNy00NjUxLWFiNjEtYmJiYmE2NTY5N2E3IiwibmJmIjoxNjQyMDgwNjE4LCJzdWIiOiJVc2VyOjEiLCJ0eXAiOiJhY2Nlc3MifQ.pykTIwQrzl6-qEcZowysmT9NnV71SBPZEv5Utbdny_AaU_ng7vspcdWxgZca0Q16i2lcclTJbuggtxAo8kWeIw",
|
||||||
|
|
||||||
ccpl: "https://www.cc-paysdelimours.fr/agenda"
|
ccpl: "https://www.cc-paysdelimours.fr/agenda"
|
||||||
|
|
||||||
|
9
utils.ts
9
utils.ts
@ -229,6 +229,13 @@ class utils {
|
|||||||
return eventAlreadyExists;
|
return eventAlreadyExists;
|
||||||
},
|
},
|
||||||
addQueryFromJsonScrap: (event: any) => {
|
addQueryFromJsonScrap: (event: any) => {
|
||||||
|
|
||||||
|
let tags = event.tags.map(element => {
|
||||||
|
return element.name
|
||||||
|
})
|
||||||
|
tags.push("imported")
|
||||||
|
|
||||||
|
console.log('tags', tags);
|
||||||
let newQuery = {
|
let newQuery = {
|
||||||
operationName: "createEvent",
|
operationName: "createEvent",
|
||||||
query: createEventQueryMobilizon,
|
query: createEventQueryMobilizon,
|
||||||
@ -246,7 +253,7 @@ class utils {
|
|||||||
attendees: [],
|
attendees: [],
|
||||||
commentModeration: "ALLOW_ALL",
|
commentModeration: "ALLOW_ALL",
|
||||||
hideOrganizerWhenGroupEvent: false,
|
hideOrganizerWhenGroupEvent: false,
|
||||||
maximumAttendeeCapacity: 200,
|
// maximumAttendeeCapacity: 200,
|
||||||
offers: [],
|
offers: [],
|
||||||
participationConditions: [],
|
participationConditions: [],
|
||||||
program: "",
|
program: "",
|
||||||
|
Loading…
Reference in New Issue
Block a user