Skip to content

Commit 6f4f799

Browse files
committed
ref: add 'update' method for future use in cached API interrogator
1 parent 171ada7 commit 6f4f799

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

dcoraid/dbmodel/db_api.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,10 @@ def search_dataset_via_api(self,
255255

256256
return dbextract
257257

258+
def update(self, reset=False):
259+
"""Ignored, since no local database exists"""
260+
pass
261+
258262
@property
259263
def local_timestamp(self):
260264
"""Local database date in seconds since epoch"""

dcoraid/dbmodel/db_core.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,8 @@ def remote_version_score(self):
8888
def remote_timestamp(self):
8989
"""Remote database date in seconds since epoch"""
9090
return 0
91+
92+
@abc.abstractmethod
93+
def update(self, reset=False):
94+
"""Update the local database copy"""
95+
pass

0 commit comments

Comments
 (0)