Commit 7676d1d2 authored by Oscar Roisin's avatar Oscar Roisin

add doc function objective 2

parent 26305be1
......@@ -13,6 +13,7 @@ numeric_columns.remove('lat')
FIRST_DAY = loading.FIRST_DAY
LAST_DAY = loading.LAST_DAY
def getDailyIndicator(year, month, day, indicators):
# Verify if date exists in the database
if verifyDateInPeriod(FIRST_DAY, LAST_DAY, year, month, day):
......@@ -37,6 +38,13 @@ def getDailyIndicator(year, month, day, indicators):
else:
return []
'''
name : mapIndicator
description : Enregistre la carte représentant les indicateurs souhaités pour la date précisée en paramètre
parameters :
* date : date au format yyyy-mm-dd
* indicators : liste d'indicateurs
'''
def mapIndicator(date, indicators):
# Split date and filter indicators
year, month, day = date.split('-')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment