From 7d28dca00bd68cc289d9cd734784fd04b203b8fc Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 26 Oct 2023 23:56:42 +0300 Subject: [PATCH] proper credit to anton-d in WPD --- scripts/sync_emojis.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sync_emojis.sh b/scripts/sync_emojis.sh index 56f1e1221..73f2e0d46 100644 --- a/scripts/sync_emojis.sh +++ b/scripts/sync_emojis.sh @@ -3,7 +3,7 @@ #generate seed-emojis-$SITE_NAME.sql EXPORT_EMOJIS=$(psql --csv --tuples-only -P "null=NULL" -c \ - "SELECT ''''||name||'''', ' '''||kind||'''', ' '||2, ' '''||tags||'''', ' '||nsfw||'', ' '||created_utc||'' FROM emojis WHERE submitter_id IS NULL and author_id != 2 ORDER BY name" \ + "SELECT ''''||name||'''', ' '''||kind||'''', ' '||2, ' '''||tags||'''', ' '||nsfw||'', ' '||created_utc||'' FROM emojis WHERE submitter_id IS NULL and author_id != 2 and author_id != 1076771 ORDER BY name" \ "$DATABASE_URL") EXPORT_EMOJIS=$(sed 's/.*/\(&\),/' <<< "$EXPORT_EMOJIS") echo "INSERT INTO public.emojis (name, kind, author_id, tags, nsfw, created_utc) VALUES" > "/d/seed-emojis-$SITE_NAME.sql"