diff --git a/viewer/static/js/nyc-lat-lons-ny.js b/data/nyc-lat-lons-ny.js similarity index 100% rename from viewer/static/js/nyc-lat-lons-ny.js rename to data/nyc-lat-lons-ny.js diff --git a/oldnyc/site/generate_static_site.py b/oldnyc/site/generate_static_site.py index 4e5c3f22..771e59aa 100755 --- a/oldnyc/site/generate_static_site.py +++ b/oldnyc/site/generate_static_site.py @@ -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} @@ -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: