giswqs commited on
Commit
de94178
1 Parent(s): 8ab0d53

Fixed end year bug

Browse files
Files changed (2) hide show
  1. .gitignore +1 -0
  2. apps/timelapse.py +3 -3
.gitignore CHANGED
@@ -4,6 +4,7 @@ __pycache__/
4
  *$py.class
5
  # *.html
6
  private/
 
7
 
8
  # C extensions
9
  *.so
 
4
  *$py.class
5
  # *.html
6
  private/
7
+ .vscode/
8
 
9
  # C extensions
10
  *.so
apps/timelapse.py CHANGED
@@ -501,7 +501,7 @@ def app():
501
  "Start and end year:",
502
  sensor_start_year,
503
  today.year,
504
- (sensor_start_year, today.year),
505
  )
506
  months = st.slider("Start and end month:", 1, 12, (1, 12))
507
  font_size = st.slider("Font size:", 10, 50, 30)
@@ -1032,7 +1032,7 @@ def app():
1032
  vis_params = st.text_area(
1033
  "Enter visualization parameters",
1034
  "",
1035
- help="Enter a string in the format of a dictionary, such as '{'min': 23, 'max': 32}'"
1036
  )
1037
 
1038
  speed = st.slider("Frames per second:", 1, 30, 5)
@@ -1189,7 +1189,7 @@ def app():
1189
  "Start and end year:",
1190
  2003,
1191
  today.year,
1192
- (2003, today.year),
1193
  )
1194
 
1195
  bands = st.selectbox(
 
501
  "Start and end year:",
502
  sensor_start_year,
503
  today.year,
504
+ (sensor_start_year, today.year - 1),
505
  )
506
  months = st.slider("Start and end month:", 1, 12, (1, 12))
507
  font_size = st.slider("Font size:", 10, 50, 30)
 
1032
  vis_params = st.text_area(
1033
  "Enter visualization parameters",
1034
  "",
1035
+ help="Enter a string in the format of a dictionary, such as '{'min': 23, 'max': 32}'",
1036
  )
1037
 
1038
  speed = st.slider("Frames per second:", 1, 30, 5)
 
1189
  "Start and end year:",
1190
  2003,
1191
  today.year,
1192
+ (2003, today.year - 1),
1193
  )
1194
 
1195
  bands = st.selectbox(