We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e2d036 commit 17837baCopy full SHA for 17837ba
1 file changed
migration/openresearch/event.py
@@ -165,15 +165,15 @@ def getJsonFile(self):
165
jsonFilePath="%s.json" % jsonPrefix
166
return jsonFilePath
167
168
- def fromCache(self,wikiuser:WikiUser):
+ def fromCache(self,wikiuser:WikiUser,force=False):
169
'''
170
Args:
171
wikiuser: the wikiuser to use
172
173
jsonFilePath=self.getJsonFile()
174
# TODO: fix upstream pyLodStorage
175
jsonPrefix=jsonFilePath.replace(".json","")
176
- if os.path.isfile(jsonFilePath):
+ if os.path.isfile(jsonFilePath) and not force:
177
self.restoreFromJsonFile(jsonPrefix)
178
else:
179
self.fromWiki(wikiuser,askExtra=self.askExtra,profile=self.profile)
0 commit comments