Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
GandalFran committed Jan 4, 2021
1 parent 4495c0a commit c617560
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions soa-api/src/soa/models/covid_model_bcn.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Copyright 2020 Luis Blazquez Miñambres (@luisblazquezm), Miguel Cabezas Puerto (@MiguelCabezasPuerto), Óscar Sánchez Juanes (@oscarsanchezj) and Francisco Pinto-Santos (@gandalfran)
# See LICENSE for details.

import json
import datetime
import requests

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,9 @@ export default {
// filter data
var targetdate = new Date()
targetdate.setDate(targetdate.getDate() - 1);
targetdate.setMonth(targetdate.getMonth() - 2);
mappedData = mappedData.filter(function(e){
return true;
//return (e.date >= targetdate);
return (e.date >= targetdate);
})
var geojsonSeries = this.seriesToGeoJson(mappedData);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,9 @@ export default {
// filter data
var targetdate = new Date()
targetdate.setDate(targetdate.getDate() - 1);
targetdate.setMonth(targetdate.getMonth() - 2);
mappedData = mappedData.filter(function(e){
return true;
//return (e.date >= targetdate);
return (e.date >= targetdate);
})
var geojsonSeries = this.seriesToGeoJson(mappedData);
Expand Down

0 comments on commit c617560

Please sign in to comment.