mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-30 09:43:51 +08:00
Fix: No drop image caching if no drop image save
since stats service is offline now
This commit is contained in:
@@ -67,7 +67,10 @@ class DropImage:
|
|||||||
return len(self.images)
|
return len(self.images)
|
||||||
|
|
||||||
def __bool__(self):
|
def __bool__(self):
|
||||||
return self.save or self.upload
|
# Uncomment these if stats service re-run in the future
|
||||||
|
# return self.save or self.upload
|
||||||
|
|
||||||
|
return self.save
|
||||||
|
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
return self
|
return self
|
||||||
@@ -217,6 +220,8 @@ class AzurStats:
|
|||||||
save_thread = threading.Thread(
|
save_thread = threading.Thread(
|
||||||
target=self._save, args=(image, genre, filename))
|
target=self._save, args=(image, genre, filename))
|
||||||
save_thread.start()
|
save_thread.start()
|
||||||
|
|
||||||
|
# Uncomment these if stats service re-run in the future
|
||||||
# if upload:
|
# if upload:
|
||||||
# upload_thread = threading.Thread(
|
# upload_thread = threading.Thread(
|
||||||
# target=self._upload, args=(image, genre, filename))
|
# target=self._upload, args=(image, genre, filename))
|
||||||
|
|||||||
Reference in New Issue
Block a user