Skip to content

Commit fb2fe6d

Browse files
TyHiljpahm
andauthored
Finalize daily events runner (#59)
* Enable Mazevo uploader * Enable all parts of daily runner * It did this when I ran built.bat --------- Co-authored-by: Josh <[email protected]>
1 parent e426296 commit fb2fe6d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

deploy.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ gcloud secrets versions access latest --secret="$ENV_SECRET_NAME" > .env
1010

1111
# Scrape, parse, and upload
1212
./api-tools -scrape -mazevo -verbose
13-
#./api-tools -parse -mazevo -verbose
13+
./api-tools -parse -mazevo -verbose
1414
./api-tools -scrape -astra -verbose
15-
#./api-tools -parse -astra -verbose
16-
#./api-tools -upload -events -verbose
15+
./api-tools -parse -astra -verbose
16+
./api-tools -upload -events -verbose

uploader/eventsUploader.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
// Note that this uploader assumes that the collection names match the names of these files, which they should.
1919
// If the names of these collections ever change, the file names should be updated accordingly.
2020

21-
var eventsFilesToUpload [1]string = [1]string{"astra.json"}
21+
var eventsFilesToUpload [2]string = [2]string{"astra.json", "mazevo.json"}
2222

2323
func UploadEvents(inDir string) {
2424

@@ -51,6 +51,8 @@ func UploadEvents(inDir string) {
5151
switch path {
5252
case "astra.json":
5353
UploadData[schema.MultiBuildingEvents[schema.AstraEvent]](client, ctx, fptr, true)
54+
case "mazevo.json":
55+
UploadData[schema.MultiBuildingEvents[schema.MazevoEvent]](client, ctx, fptr, true)
5456
}
5557
}
5658
}

0 commit comments

Comments
 (0)