From 40b726bf86e2c374679e6c83df4a76e9abcf89f2 Mon Sep 17 00:00:00 2001 From: AnonymousRandomPerson Date: Wed, 19 Jul 2023 19:44:34 -0400 Subject: [PATCH] Replaced more r/placeAtlas2 occurrences --- CONTRIBUTING.md | 4 ++-- README.md | 2 +- tools/oneoff/redditflairset.py | 12 ++++++------ tools/oneoff/users.py | 2 +- tools/redditcrawl.py | 2 +- web/_js/config.js | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 10e1d9bee..dcd1f6935 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -20,7 +20,7 @@ When you're happy with the shape you've drawn, press Finish. You will - **Website**: If you're describing a project, the project's main website would be suitable here. - **Subreddit**: Format it like `r/subreddit`. - **Discord**: Write the invite code, that the invite link without the `discord.gg/` part. - - **Wiki**: The page title of [The r/place Wiki](https://place-wiki.stefanocoding.me/). + - **Wiki**: The page title of [the r/place Wiki](https://place-wiki.stefanocoding.me/). All fields but the name are optional. For example, a country flag doesn't necessarily need a description. @@ -88,7 +88,7 @@ Hereforth is an example of the structured data. The example has been expanded, b "name": "An entry", "description": "This is an entry, it is remarkable.", "links": { - "subreddit": ["placeAtlas2", "subreddit1", "subreddit2"], + "subreddit": ["placeAtlas2023", "subreddit1", "subreddit2"], "discord": ["pJkm23b2nA"], "website": ["https://example.com"], "wiki": ["An_Entry", "An_Entry_2"] diff --git a/README.md b/README.md index 403773c8e..40467a42f 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Please read [CONTRIBUTING.md](CONTRIBUTING.md) to learn how to submit a new entr [![All Contributors](https://img.shields.io/badge/all_contributors-6-orange.svg?style=flat)](#contributors) -Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key))): +Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)): diff --git a/tools/oneoff/redditflairset.py b/tools/oneoff/redditflairset.py index 0e15ca9cc..70b5062f7 100644 --- a/tools/oneoff/redditflairset.py +++ b/tools/oneoff/redditflairset.py @@ -61,12 +61,12 @@ def set_flair(submission, flair): total_all_flairs = 0 rejected_count = 0 processed_count = 0 -for submission in reddit.subreddit('placeAtlas2').new(limit=1000): -#for submission in reddit.subreddit('placeAtlas2').search('flair:"New Entry"',limit=1000,syntax='lucene', sort="top"): -#for submission in reddit.subreddit('placeAtlas2').search('flair:"New Entry"',limit=1000,syntax='lucene', sort="comments"): -#for submission in reddit.subreddit('placeAtlas2').search('flair:"New Entry"',limit=1000,syntax='lucene', sort="hot"): -#for submission in reddit.subreddit('placeAtlas2').search('flair:"New Entry"',limit=1000,syntax='lucene', sort="new"): -#for submission in reddit.subreddit('placeAtlas2').search('flair:"New Entry"',limit=1000,syntax='lucene', sort="relevance"): +for submission in reddit.subreddit('placeAtlas2023').new(limit=1000): +#for submission in reddit.subreddit('placeAtlas2023').search('flair:"New Entry"',limit=1000,syntax='lucene', sort="top"): +#for submission in reddit.subreddit('placeAtlas2023').search('flair:"New Entry"',limit=1000,syntax='lucene', sort="comments"): +#for submission in reddit.subreddit('placeAtlas2023').search('flair:"New Entry"',limit=1000,syntax='lucene', sort="hot"): +#for submission in reddit.subreddit('placeAtlas2023').search('flair:"New Entry"',limit=1000,syntax='lucene', sort="new"): +#for submission in reddit.subreddit('placeAtlas2023').search('flair:"New Entry"',limit=1000,syntax='lucene', sort="relevance"): """ Auth setup 1. Head to https://www.reddit.com/prefs/apps diff --git a/tools/oneoff/users.py b/tools/oneoff/users.py index e1ff76ce6..4609bb1aa 100644 --- a/tools/oneoff/users.py +++ b/tools/oneoff/users.py @@ -16,7 +16,7 @@ users.add("Shovel_Ship"); users.add("Zequez"); -for submission in reddit.subreddit('placeAtlas2').new(limit=10000): +for submission in reddit.subreddit('placeAtlas2023').new(limit=10000): try: users.add(submission.author.name) except AttributeError: diff --git a/tools/redditcrawl.py b/tools/redditcrawl.py index a940c1fcc..671d51628 100644 --- a/tools/redditcrawl.py +++ b/tools/redditcrawl.py @@ -86,7 +86,7 @@ def set_flair(submission, flair): with open('temp-atlas-manual.txt', 'w', encoding='utf-8') as FAIL_FILE: submission: Submission - for submission in reddit.subreddit('placeAtlas2').new(limit=1000): + for submission in reddit.subreddit('placeAtlas2023').new(limit=1000): total_all_flairs += 1 print(f"{submission.id}: Submitted {humanize.naturaltime(datetime.utcnow() - datetime.utcfromtimestamp(submission.created_utc))}.") diff --git a/web/_js/config.js b/web/_js/config.js index 9f5319bfc..3a005b84f 100644 --- a/web/_js/config.js +++ b/web/_js/config.js @@ -8,7 +8,7 @@ window.prodDomain = prodDomain const instanceId = "2023" window.instanceId = instanceId -const instanceSubreddit = "placeAtlas2" +const instanceSubreddit = "placeAtlas2023" window.instanceSubreddit = instanceSubreddit const instanceRepo = "https://github.com/placeAtlas/atlas-2023"