We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e785f3 commit c3b4b33Copy full SHA for c3b4b33
coingecko/__init__.py
@@ -104,8 +104,7 @@ def finalize(self):
104
self.thread.join()
105
106
def updateIndexItems(self):
107
- mtime = self.coinCacheFilePath.lstat().st_mtime
108
- if self.coinCacheFilePath.is_file() and mtime > self.mtime:
+ if self.coinCacheFilePath.is_file() and (mtime := self.coinCacheFilePath.lstat().st_mtime) > self.mtime:
109
self.mtime = mtime
110
with open(self.coinCacheFilePath) as f:
111
self.items.clear()
0 commit comments