mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-13 05:48:36 +03:00
Modifying aggregatedpaths func to return paths as keys to object instead of just singular leaf
This commit is contained in:
@@ -137,6 +137,10 @@ export function validateDomain(domain, features) {
|
||||
// append events with datetime and sort
|
||||
sanitizedDomain.events = sanitizedDomain.events.filter((event, idx) => {
|
||||
event.id = idx;
|
||||
// if lat, long come in with commas, replace with decimal format
|
||||
event.latitude = event.latitude.replace(",", ".");
|
||||
event.longitude = event.longitude.replace(",", ".");
|
||||
|
||||
event.datetime = calcDatetime(event.date, event.time);
|
||||
if (!isValidDate(event.datetime)) {
|
||||
discardedDomain.events.push({
|
||||
|
||||
Reference in New Issue
Block a user