mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 22:08:20 +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():
|
||||
for arg, value in kwargs.items():
|
||||
record = arg.replace("Value", "Record")
|
||||
self.__setattr__(arg, value)
|
||||
self.__setattr__(record, datetime.now().replace(microsecond=0))
|
||||
if self.__getattribute__(arg) != value:
|
||||
self.__setattr__(arg, value)
|
||||
self.__setattr__(record, datetime.now().replace(microsecond=0))
|
||||
|
||||
def multi_set(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user