From dbf14005998b3369b27bfafb059fc73a0388865c Mon Sep 17 00:00:00 2001 From: ash Date: Mon, 4 Apr 2022 18:03:25 +0100 Subject: [PATCH] fix broken quote mark --- tools/redditcrawl.py | 6 +++++- web/_js/atlas.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/redditcrawl.py b/tools/redditcrawl.py index 588498ba..2a308090 100755 --- a/tools/redditcrawl.py +++ b/tools/redditcrawl.py @@ -25,8 +25,12 @@ lines = text.split("\n") - text = "\n".join(lines) + + for i, line in enumerate(lines): + if("\"id\": 0" in line): + lines[i] = line.replace("\"id\": 0", "\"id\": "+str(latestID)) + latestID = latestID + 1 try: outfile.write(json.dumps(json.loads(text))+",\n") diff --git a/web/_js/atlas.js b/web/_js/atlas.js index 64cab657..05d1b3a2 100644 --- a/web/_js/atlas.js +++ b/web/_js/atlas.js @@ -207,7 +207,7 @@ var atlas = [ {"id": 149, "submitted_by": "pixelsimulation", "name": "Art Heaven", "description": "Art Heaven is an art community started on discord. This is an image of our mascot, Abby!", "website": "", "subreddit": "r/artheaven", "center": [652.5, 640.5], "path": [[661.5, 632.5], [661.5, 647.5], [642.5, 647.5], [642.5, 632.5]]}, {"id": 150, "submitted_by": "ljcool2006", "name": "Hawaii: Part II", "description": "An album by Miracle Musical, a music project made by members of Tally Hall", "website": "https://www.hawaiipartii.com/", "subreddit": "/r/tallyhall", "center": [1507.5, 191.5], "path": [[1495.5, 180.5], [1518.5, 180.5], [1518.5, 201.5], [1495.5, 201.5]]}, {"id": 151, "submitted_by": "F-L-A-R-E", "name": "Karlsruhe Institute of Technology (KIT)", "description": "University of Karlsruhe (Germany)", "website": "kit.edu", "subreddit": "/r/KaIT", "center": [796.5, 534.5], "path": [[760.5, 521.5], [760.5, 547.5], [832.5, 547.5], [832.5, 521.5]]}, -{"id": 152, "submitted_by": "Powaza", "name": "Chick (Powi)", "description": "The Chick from the MEA (Middle Eastern Alliance). Idea from "Powi Club"s Discord server and other helpers.", "website": "https://discord.gg/EyNsdbU", "subreddit": "/r/PowiTeam", "center": [ 1777.5, 949.5 ], "path": [ [ 1784.5, 940.5 ], [ 1773.5, 940.5 ], [ 1773.5, 946.5 ], [ 1768.5, 947.5 ], [ 1768.5, 957.5 ], [ 1784.5, 957.5 ], [ 1784.5, 952.5 ] ] }, +{"id": 152, "submitted_by": "Powaza", "name": "Chick (Powi)", "description": "The Chick from the MEA (Middle Eastern Alliance). Idea from 'Powi Club's Discord server and other helpers.", "website": "https://discord.gg/EyNsdbU", "subreddit": "/r/PowiTeam", "center": [ 1777.5, 949.5 ], "path": [ [ 1784.5, 940.5 ], [ 1773.5, 940.5 ], [ 1773.5, 946.5 ], [ 1768.5, 947.5 ], [ 1768.5, 957.5 ], [ 1784.5, 957.5 ], [ 1784.5, 952.5 ] ] }, {"id": 153, "submitted_by": "horsewhips", "name": "The Ohio State University", "description": "The Ohio State University (OSU) is located in Columbus, Ohio, USA. OSU's school colors are scarlet and gray which can be seen around their famous Block O - located towards the bottom left of the artwork. The Block "O" together with the Buckeye nut is the logo for The Ohio State University. OSU (not to be confused with the rhythm game 'osu!') is famous for it's rivalry with the University of Michigan with the 15-2 representing the current streak of 15 wins against UofM's 2. The Ohio flag is on the top right, representing the state of Ohio, USA. The bottom right has the famous 'Script Ohio' - a long-time Ohio State tradition from the school's Marching Band where members of the band will form the word 'Ohio' in script during football games. A second block 'O' is situated next to Purdue University & Rutgers University elsewhere on r/place.", "website": "[https://www.osu.edu](https://www.osu.edu)", "subreddit": "r/osu", "center": [ 1347.5, 813.5 ], "path": [ [ 1331.5, 795.5 ], [ 1331.5, 830.5 ], [ 1363.5, 831.5 ], [ 1363.5, 795.5 ], [ 1363.5, 795.5 ], [ 1363.5, 795.5 ] ] }, ];