Skip to content

Commit

Permalink
🛠️ make 12 months rather than 6
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Feb 17, 2021
1 parent 465a9de commit 96a2c83
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion FRONTEND/COMETApp.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def index():
rawdf = pd.DataFrame.from_dict(data, orient='index')
volcanos_with_events=rawdf[pd.notna(rawdf.prob_date)]
now = dt.datetime.now().strftime("%Y-%m-%d")
last_sixmonths = pd.to_datetime(now) - pd.DateOffset(months=6)
last_sixmonths = pd.to_datetime(now) - pd.DateOffset(months=12)
mask = (volcanos_with_events['prob_date'] > last_sixmonths.strftime("%Y-%m-%d")) & (volcanos_with_events['prob_date'] <= now)
recent_events = volcanos_with_events.loc[mask]
volcs = df.loc[df.jasmin_name.isin(recent_events.index.to_list())].sort_values(by=['jasmin_name'])
Expand Down
4 changes: 2 additions & 2 deletions FRONTEND/templates/home.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ how to us the online analysis tools to interrogate Sentinel-1 imagery available
<br>
<br>
<h2> Recent activity </h2>
<p> <b>{{total}}</b> volcanos with events automatically detected in past 6 months
<table id="myTable" class="display" style="width:40%">
<p> <b>{{total}}</b> volcanos with events automatically detected in past year
<table id="myTable" class="display" style="width:40%">
<thead>
<tr>
<th>Volcano </th>
Expand Down
Binary file modified FRONTEND/volcano.db
Binary file not shown.

0 comments on commit 96a2c83

Please sign in to comment.