diff --git a/swh/loader/core/loader.py b/swh/loader/core/loader.py --- a/swh/loader/core/loader.py +++ b/swh/loader/core/loader.py @@ -666,6 +666,13 @@ """ pass + def store_metadata(self): + """Store fetched metadata in the database. + + For more information, see implementation in :class:`DepositLoader`. + """ + pass + def load_status(self): """Detailed loading status. @@ -736,6 +743,9 @@ visit_date) self.visit = origin_visit['visit'] + # method implemented in the sub classes using it + self.store_metadata() + try: while True: more_data_to_fetch = self.fetch_data()