Skip to content

Commit

Permalink
closes #67
Browse files Browse the repository at this point in the history
  • Loading branch information
yolile committed Jul 2, 2024
1 parent d2a3a59 commit 21d2835
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions component_setup_download_data_from_registry.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@
"\n",
"\n",
"def get_available_years(publication):\n",
" year_from = int(publication[\"date_from\"][:4])\n",
" year_to = int(publication[\"date_to\"][:4])\n",
" years = list(range(year_from, year_to + 1))\n",
" years.append(\"full\")\n",
" years = [\"full\"]\n",
" if publication[\"date_from\"] and publication[\"date_to\"]:\n",
" year_from = int(publication[\"date_from\"][:4])\n",
" year_to = int(publication[\"date_to\"][:4])\n",
" years.extend(list(range(year_from, year_to + 1)))\n",
" return years\n",
"\n",
"\n",
Expand Down Expand Up @@ -87,4 +88,4 @@
]
}
]
}
}

0 comments on commit 21d2835

Please sign in to comment.