Fix optout header.

main
mathan 2024-05-15 11:51:27 -07:00
parent fb1048f3a6
commit 8daf08d57c
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ docker compose exec -it postgres psql -U postgres -d bluesky \
echo "Starting optouts export..." echo "Starting optouts export..."
docker compose exec -it postgres psql -U postgres -d bluesky \ docker compose exec -it postgres psql -U postgres -d bluesky \
-c "copy (select did from repos as r inner join records_block as rb on r.id=rb.repo where rb.content['subject']::text like '%did:plc:qevje4db3tazfbbialrlrkza%') to stdout with csv header;" > ${CSV_DIR}/full/${date}/optout.csv -c "copy (select did as "did:ID" from repos as r inner join records_block as rb on r.id=rb.repo where rb.content['subject']::text like '%did:plc:qevje4db3tazfbbialrlrkza%') to stdout with csv header;" > ${CSV_DIR}/full/${date}/optout.csv
echo "Finishing optouts export..." echo "Finishing optouts export..."

View File

@ -96,7 +96,7 @@ docker compose exec -it postgres psql -U postgres -d bluesky \
echo "Starting optouts export..." echo "Starting optouts export..."
docker compose exec -it postgres psql -U postgres -d bluesky \ docker compose exec -it postgres psql -U postgres -d bluesky \
-c "copy (select did from repos as r inner join records_block as rb on r.id=rb.repo where rb.content['subject']::text like '%did:plc:qevje4db3tazfbbialrlrkza%') to stdout with csv header;" > ${CSV_DIR}/monthly/${date}/optout.csv -c "copy (select did as "did:ID" from repos as r inner join records_block as rb on r.id=rb.repo where rb.content['subject']::text like '%did:plc:qevje4db3tazfbbialrlrkza%') to stdout with csv header;" > ${CSV_DIR}/monthly/${date}/optout.csv
echo "Finishing optouts export..." echo "Finishing optouts export..."