mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-27 07:18:22 +08:00
Opt: Reduce json writes when recording emotion
This commit is contained in:
@@ -313,8 +313,9 @@ class AzurLaneConfig(ConfigUpdater, ManualConfig, GeneratedConfig, ConfigWatcher
|
|||||||
with self.multi_set():
|
with self.multi_set():
|
||||||
for arg, value in kwargs.items():
|
for arg, value in kwargs.items():
|
||||||
record = arg.replace("Value", "Record")
|
record = arg.replace("Value", "Record")
|
||||||
self.__setattr__(arg, value)
|
if self.__getattribute__(arg) != value:
|
||||||
self.__setattr__(record, datetime.now().replace(microsecond=0))
|
self.__setattr__(arg, value)
|
||||||
|
self.__setattr__(record, datetime.now().replace(microsecond=0))
|
||||||
|
|
||||||
def multi_set(self):
|
def multi_set(self):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user