Updated Reddit

This commit is contained in:
Cheng Hann Gan 2022-05-26 12:28:01 -04:00
parent 7619f11a62
commit a75a0ab149
5 changed files with 42 additions and 25 deletions

View file

@ -9747,3 +9747,10 @@ uui38k
uv0679
uuy3sn
uuy1e5
uxegrh
uwuon8
uw90m9
uvnhvv
uvm3w1
uvfo1y
uv39r0

View file

@ -386,14 +386,7 @@ def print_(*args, **kwargs):
print_("Completed!")
return entry
def go(path):
print(f"Formatting {path}...")
with open(path, "r+", encoding='UTF-8') as f1:
entries = json.loads(f1.read())
def format_all_entries(entries):
for i in range(len(entries)):
try:
entry_formatted = format_all(entries[i], True)
@ -409,6 +402,15 @@ def go(path):
if not (i % 200):
print(f"{i} checked.")
def go(path):
print(f"Formatting {path}...")
with open(path, "r+", encoding='UTF-8') as f1:
entries = json.loads(f1.read())
format_all_entries(entries)
print(f"{len(entries)} checked. Writing...")
with open(path, "w", encoding='utf-8', newline='\n') as f2:

View file

@ -7,24 +7,24 @@
merge_source_file = 'temp_atlas.json'
formatter.go(merge_source_file)
with open(merge_source_file, 'r', encoding='UTF-8') as f1:
out_json = json.loads(f1.read())
formatter.format_all_entries(out_json)
base_image_path = os.path.join('..', 'web', '_img', 'canvas', 'place30')
ScaleConfig.image1 = os.path.join(base_image_path, '159.png')
scale_back.swap_source_dest('164', '165', os.path.join(base_image_path, '163_159.png'))
scale_back.go(merge_source_file)
scale_back.scale_back_entries(out_json)
scale_back.swap_source_dest('165', '166', os.path.join(base_image_path, '164_159.png'))
scale_back.go(merge_source_file)
scale_back.scale_back_entries(out_json)
scale_back.swap_source_dest('166', '167', os.path.join(base_image_path, '165_159.png'))
scale_back.go(merge_source_file)
scale_back.scale_back_entries(out_json)
out_ids = set()
out_dupe_ids = set()
atlas_ids = {}
with open(merge_source_file, 'r', encoding='utf-8') as out_file:
out_json = json.loads(out_file.read())
with open('../web/atlas.json', 'r', encoding='utf-8') as atlas_file:
atlas_json = json.loads(atlas_file.read())

View file

@ -168,13 +168,7 @@ def print_(*args, **kwargs):
print_("Completed!")
return entry
def go(path):
print(f"Scaling whiteout for {path}...")
with open(path, "r+", encoding='UTF-8') as f1:
entries = json.loads(f1.read())
def scale_back_entries(entries):
for i in range(len(entries)):
try:
entry_formatted = format_all(entries[i], True)
@ -186,6 +180,15 @@ def go(path):
print(f"{i} checked.")
gc.collect()
def go(path):
print(f"Scaling whiteout for {path}...")
with open(path, "r+", encoding='UTF-8') as f1:
entries = json.loads(f1.read())
scale_back_entries(entries)
print(f"{len(entries)} checked. Writing...")
with open(path, "w", encoding='utf-8', newline='\n') as f2:

View file

@ -658,7 +658,7 @@
{"id": "twm0np", "name": "im_a_squid_kid", "description": "im_a_squid_kid is a Minecraft YouTuber who specializes in Hypixel Skyblock. He is most well-known for being Technoblade's rival in the Potato Wars, which squid_kid eventually lost, hence the 'rank #2'.", "links": {"website": ["https://www.youtube.com/c/imasquidkid"]}, "path": {"109-166, T": [[1814, 1258], [1835, 1258], [1835, 1272], [1814, 1272]]}, "center": {"109-166, T": [1825, 1265]}},
{"id": "twlzw3", "name": "Tulips", "description": "The Dutch are famous for their tulips. The flower itself actually originates from Central Asia.", "links": {"website": ["https://en.wikipedia.org/wiki/Tulip"], "subreddit": ["PlaceNL"]}, "path": {"1-166, T": [[481, 13], [480, 13], [480, 9], [481, 9], [481, 0], [592, 0], [592, 1], [593, 1], [593, 2], [594, 2], [594, 11], [593, 11], [593, 12], [592, 13]]}, "center": {"1-166, T": [538, 8]}},
{"id": "twlzv2", "name": "Sakamoto", "description": "A popular character from the anime Nichijou. He lives with the child genius Professor Hakase and her robot caretaker Nano. The scarf around his neck allows him to talk.", "links": {"website": ["https://en.wikipedia.org/wiki/Nichijou"], "subreddit": ["Nichijou"]}, "path": {"70-164, T": [[1461, 535], [1448, 535], [1448, 532], [1449, 532], [1449, 528], [1450, 528], [1450, 526], [1445, 520], [1448, 515], [1448, 511], [1451, 513], [1453, 510], [1457, 509], [1457, 512], [1458, 512], [1458, 519], [1459, 519], [1462, 518], [1462, 521], [1458, 525], [1459, 528], [1461, 526], [1462, 527], [1462, 531]]}, "center": {"70-164, T": [1452, 519]}},
{"id": "twlzrt", "name": "Kindelia", "description": "A functional crypto-computer based on the HVM (High-order Virtual Machine). Kindelia is more efficient than alternatives, and, thanks to formal proofs, inherently more secure. Programs hosted on Kindelia are hack-proof and eternal.", "links": {"website": ["https://kindelia.org/"], "subreddit": ["kindelia"]}, "path": {"1-166, T": [[978, 566], [978, 552], [1015, 552], [1015, 563], [1012, 563], [1012, 564], [1011, 564], [1011, 567], [978, 567]]}, "center": {"1-166, T": [996, 559]}},
{"id": "twlzrt", "name": "Kindelia", "description": "A functional crypto-computer based on the HVM (High-order Virtual Machine). Kindelia is more efficient than alternatives, and, thanks to formal proofs, inherently more secure. Programs hosted on Kindelia are hack-proof and eternal.", "links": {"website": ["https://kindelia.org/"], "subreddit": ["kindelia"]}, "path": {"1-166, T": [[978, 566], [978, 552], [1015, 552], [1015, 563], [1012, 563], [1012, 564], [1011, 564], [1011, 567], [998, 567], [998, 558], [989, 558], [989, 567], [978, 567]]}, "center": {"1-166, T": [1005, 559]}},
{"id": "twlylc", "name": "Mitski", "description": "Tribute to the musical artist Mitski. The upper right contains minimalist covers of her albums. Clockwise from the upper left: Lush, Bury Me at Makeout Creek, Be the Cowboy, Laurel Hell, Puberty 2, and Retired from Sad, New Career in Business.", "links": {"website": ["https://mitski.com/"], "subreddit": ["mitski"]}, "path": {"109-166, T": [[1057, 1800], [1057, 1812], [1085, 1812], [1085, 1800], [1087, 1800], [1087, 1790], [1072, 1790], [1072, 1800]]}, "center": {"109-166, T": [1074, 1803]}},
{"id": "twlyi6", "name": "B.B chibi portrait", "description": "B.B is a character found in the Fate/Grand Order mobile game and the Fate/Extra game series", "links": {"subreddit": ["grandorder"]}, "path": {"1-166, T": [[169, 765], [154, 777], [156, 803], [208, 805], [189, 768], [186, 766]]}, "center": {"1-166, T": [178, 787]}},
{"id": "twly9x", "name": "The Battle Cats X World Box", "description": "The collab of Mobile game 'The Battle Cats' with Survival game 'World Box'", "links": {"subreddit": ["battlecats"]}, "path": {"109-166, T": [[558, 1647], [578, 1646], [578, 1655], [580, 1667], [589, 1673], [589, 1682], [581, 1682], [577, 1687], [559, 1689], [553, 1682], [548, 1681], [545, 1669], [552, 1669], [555, 1664], [557, 1654], [558, 1647], [559, 1647], [560, 1647]]}, "center": {"109-166, T": [567, 1669]}},
@ -5877,7 +5877,7 @@
{"id": "ty1fr5", "name": "River Plate flag failed attemp", "description": "After taking over the boca juniors flag with the help of bots and the communities of argentina, bolivia, paraguay and lovelive.\nThe community of River Plate attemp with the help of bots to make a flag before the final moments of the canvas", "links": {"subreddit": ["CAriverplate"]}, "path": {"1-165, T": [[911, 695], [918, 695], [918, 702], [911, 702]]}, "center": {"1-165, T": [915, 699]}},
{"id": "ty1fai", "name": "WatermelonPandaPantsuCrew", "description": "A Watermelon and a Pantsu, drawn by the community of twitch Vstreamer/Vtuber @sukidingels", "links": {"website": ["https://www.twitch.tv/sukidingels"]}, "path": {"109-165, T": [[869, 1375], [869, 1379], [868, 1379], [868, 1382], [867, 1382], [867, 1383], [866, 1383], [866, 1384], [851, 1384], [851, 1383], [850, 1383], [850, 1382], [849, 1382], [849, 1381], [848, 1381], [848, 1380], [847, 1380], [847, 1379], [846, 1379], [846, 1378], [845, 1378], [845, 1377], [844, 1377], [844, 1375]]}, "center": {"109-165, T": [857, 1379]}},
{"id": "ty1eib", "name": "Guya.moe", "description": "An unofficial fan website for the manga Kaguya-sama: Love Is War. Mostly used as a place to host fan translations of the various mangas related to the series.", "links": {"website": ["https://guya.moe/"], "subreddit": ["Kaguya_sama"]}, "path": {"56-166, T": [[1503, 535], [1505, 535], [1509, 530], [1509, 501], [1500, 501], [1500, 530]]}, "center": {"56-166, T": [1504, 517]}},
{"id": "ty1ecj", "name": "StarClash", "description": "The ship representing the small group of people known as StarClash.", "links": {}, "path": {"109-166, T": [[240, 1225], [250, 1225], [250, 1242], [240, 1242]]}, "center": {"109-166, T": [245, 1234]}},
{"id": "ty1ecj", "name": "StarClash", "description": "The ship representing the small group of people known as StarClash.", "links": {}, "path": {"122-131": [[240, 1226], [248, 1226], [248, 1240], [240, 1240]], "71-98": [[1191, 467], [1199, 467], [1199, 484], [1191, 484]], "146-166, T": [[240, 1225], [250, 1225], [250, 1242], [240, 1242]]}, "center": {"122-131": [244, 1233], "71-98": [1195, 476], "146-166, T": [245, 1234]}},
{"id": "ty1bxu", "name": "Pansexual rainbow", "description": "A rainbow colored using the colors of pansexual pride. Pansexuality differs from bisexuality because pansexuals are attracted to the person not their gender.", "links": {"website": ["https://en.wikipedia.org/wiki/Pansexuality"], "subreddit": ["TransPlace"]}, "path": {"1-165, T": [[699, 475], [699, 474], [700, 473], [702, 473], [703, 473], [704, 472], [705, 471], [704, 470], [704, 469], [704, 468], [704, 467], [704, 466], [703, 466], [699, 466], [698, 466], [698, 467], [697, 467], [696, 467], [696, 468], [695, 468], [694, 469], [694, 470], [693, 471], [692, 472], [692, 475], [692, 476], [699, 476]]}, "center": {"1-165, T": [698, 471]}},
{"id": "ty1bfo", "name": "Utawarerumono - Kuon", "description": "A small build of the character Kuon from Utawarerumono, a visual novel/strategy RPG series. While more well known in Japan, a few members of the English community made this little Kuon.", "links": {"subreddit": ["Utawarerumono"]}, "path": {"109-166, T": [[1579, 1112], [1565, 1112], [1565, 1122], [1579, 1122]]}, "center": {"109-166, T": [1572, 1117]}},
{"id": "ty1bcj", "name": "Poultry Man", "description": "A small YouTuber who creates content based off the game Minecraft.", "links": {"website": ["https://hermitcraft.fandom.com/wiki/Poultry_Man"], "subreddit": ["PoultryMan"]}, "path": {"109-165, T": [[440, 1643], [443, 1643], [443, 1644], [440, 1644], [440, 1645], [443, 1645], [443, 1646], [440, 1646], [441, 1644], [440, 1644], [441, 1643]]}, "center": {"109-165, T": [442, 1645]}},
@ -8107,5 +8107,10 @@
{"id": "uu2p0n", "name": "Showbiz", "description": "The first album released by British rock band Muse. It was released in 1999.", "links": {"website": ["https://en.wikipedia.org/wiki/Showbiz_(Muse_album)"], "subreddit": ["Muse"]}, "path": {"17-115": [[13, 54], [13, 63], [22, 63], [22, 54]], "116-164, T": [[14, 54], [14, 63], [23, 63], [23, 54]]}, "center": {"17-115": [18, 59], "116-164, T": [19, 59]}},
{"id": "uv0679", "name": "Flag of Turkey", "description": "", "links": {"website": ["https://en.wikipedia.org/wiki/Turkey"]}, "path": {"133-140": [[36, 63], [36, 73], [49, 73], [49, 63]]}, "center": {"133-140": [43, 68]}},
{"id": "uuy3sn", "name": "Flag of Ukraine", "description": "", "links": {"website": ["https://en.wikipedia.org/wiki/Ukraine"]}, "path": {"7-10": [[1, 51], [1, 58], [14, 58], [14, 51]]}, "center": {"7-10": [8, 55]}},
{"id": "uuy1e5", "name": "Flag of Ethiopia", "description": "A country in East Africa.", "links": {"website": ["https://en.wikipedia.org/wiki/Ethiopia"]}, "path": {"25-30": [[-1, 55], [-1, 62], [6, 62], [6, 55]]}, "center": {"25-30": [3, 59]}}
{"id": "uuy1e5", "name": "Flag of Ethiopia", "description": "A country in East Africa.", "links": {"website": ["https://en.wikipedia.org/wiki/Ethiopia"]}, "path": {"25-30": [[-1, 55], [-1, 62], [6, 62], [6, 55]]}, "center": {"25-30": [3, 59]}},
{"id": "uxegrh", "name": "Handome Man", "description": "The face of god himself.", "links": {"website": ["https://www.planetminecraft.com/skin/handome-man-in-a-rainjacket/"]}, "path": {"164": [[950, 1416], [950, 1425], [959, 1425], [959, 1416]]}, "center": {"164": [955, 1421]}},
{"id": "uwuon8", "name": "nwolcJ", "description": "Minecraft speedrunner nwolc's emote \"nwolcJ\" and profile picture.", "links": {"website": ["https://www.twitch.tv/nwolc_"]}, "path": {"163-166": [[1349, 1328], [1360, 1328], [1360, 1339], [1349, 1339]]}, "center": {"163-166": [1355, 1334]}},
{"id": "uw90m9", "name": "New Jersey Institute of Technology", "description": "A small acronym for New Jersey Institute of Technology made by various r/NJTech, Discord, and Alliance of New York Institutions users. It was covered up, alongside the other New York Institution logos and Steven's Institute of Technology acronym, in the final hours of r/place by Unicornio.", "links": {"website": ["https://njit.edu"], "subreddit": ["NJTech"]}, "path": {"105-166": [[1010, 227], [1016, 227], [1015, 246], [1011, 246], [1010, 227], [1016, 227]]}, "center": {"105-166": [1013, 230]}},
{"id": "uvm3w1", "name": "DotColin", "description": "Streamer and Creator DotColin got his live stream and discord to work together making his \"dotcolnolean\" emote", "links": {"website": ["https://www.twitch.tv/dotcolin", "https://twitter.com/dotColinn"]}, "path": {"29-38": [[380, 16], [379, 17], [378, 18], [378, 20], [377, 21], [377, 24], [378, 25], [379, 26], [379, 28], [378, 28], [378, 29], [389, 29], [386, 28], [387, 26], [387, 25], [388, 24], [389, 23], [389, 22], [389, 21], [388, 20], [388, 19], [388, 17], [387, 17], [386, 16]]}, "center": {"29-38": [383, 22]}},
{"id": "uv39r0", "name": "Risk of Rain", "description": "Artwork of the Commando.", "links": {"website": ["https://riskofrain2.fandom.com/wiki/Commando"], "subreddit": ["RiskofRain"], "discord": ["MeSJ3SxJjY"]}, "path": {"109-120": [[535, 1210], [586, 1210], [586, 1250], [535, 1250]]}, "center": {"109-120": [561, 1230]}}
]