From b4f806dba24f8ec1a7ba6872f0d3efc336c10df8 Mon Sep 17 00:00:00 2001 From: David Beniamine <david.beniamine@tetras-libre.fr> Date: Tue, 3 Nov 2020 16:32:24 +0100 Subject: [PATCH] Housekeeping example --- data/Readme.md | 1 + data/example.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/data/Readme.md b/data/Readme.md index e38ee78..8e7792d 100644 --- a/data/Readme.md +++ b/data/Readme.md @@ -10,6 +10,7 @@ data/ mydata.py # Python script exposing the following methods # extractLastData() -> scraps the last data and return the downloaded file path # upload_data(path) -> upload data contained in path + # house_keeping() -> runs house_keeping for data # get_sample() -> return a sample data for debugging pupose # get_name() -> return the importer name # get_desc() -> return the importer description diff --git a/data/example.py b/data/example.py index 6e9702f..bd82746 100644 --- a/data/example.py +++ b/data/example.py @@ -16,3 +16,7 @@ def get_last_import_info(): def upload_data(path): print(path) + + +def house_keeping(): + return "House keeping done" -- GitLab