This repository was archived by the owner on Dec 20, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ async def favorite(self):
2020 "favoriteId" : self .id , "tags" : ["avatars1" ]})
2121
2222 f = Favorite (self .client , resp ["data" ])
23- await f .cacheTask
23+ if self . client . caching : await f .cacheTask
2424
2525 return f
2626
@@ -129,8 +129,8 @@ async def fetch_favorites(self, t):
129129 for favorite in resp ["data" ]:
130130 f .append (Favorite (self .client , favorite ))
131131
132- for fav in f :
133- await fav .cacheTask
132+ if self . client . caching :
133+ for fav in f : await fav .cacheTask
134134
135135 return f
136136
@@ -168,7 +168,7 @@ async def __cinit__(self):
168168 else : self .homeLocation = None
169169
170170 # Wait for all cacheTasks
171- if not self .homeLocation == None :
171+ if not self .homeLocation == None and self . client . caching :
172172 await self .homeLocation .cacheTask
173173
174174## World
Original file line number Diff line number Diff line change @@ -655,7 +655,7 @@ async def verify2fa(self, code):
655655 self .loggedIn = True
656656 self .needsVerification = False
657657
658- await self .me .cacheTask
658+ if self . caching : await self .me .cacheTask
659659
660660 def __init__ (self , verify = True , caching = True ):
661661 super ().__init__ ()
You can’t perform that action at this time.
0 commit comments