Skip to content

Commit

Permalink
move nyc-lat-lons-nyc.js; delete viewer dir
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed Oct 20, 2024
1 parent 161fc11 commit 74bd910
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
File renamed without changes.
7 changes: 1 addition & 6 deletions oldnyc/site/generate_static_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

# TODO: replace this with JSON
# strip leading 'var lat_lons = ' and trailing ';'
lat_lon_to_ids = json.loads(open("viewer/static/js/nyc-lat-lons-ny.js").read()[15:-1])
lat_lon_to_ids = json.loads(open("data/nyc-lat-lons-ny.js").read()[15:-1])

rs = load_items("data/photos.ndjson")
id_to_record = {r.id: r for r in rs}
Expand Down Expand Up @@ -75,11 +75,6 @@
if r.back_id in back_id_to_correction:
id_to_text[photo_id] = back_id_to_correction[r.back_id]["text"]

# (This was only helpful on the initial run, when data came straight from
# Ocropus.)
# for k, txt in id_to_text.iteritems():
# id_to_text[k] = cleaner.clean(txt)


def image_url(photo_id: str, is_thumb: bool) -> str:
if photo_id in self_hosted_ids:
Expand Down

0 comments on commit 74bd910

Please sign in to comment.