mirror of
https://github.com/sui-feng-cb/AzurLaneAutoScript1.git
synced 2026-06-21 03:54:11 +08:00
Fix: Verify filename when adding new config
This commit is contained in:
@@ -34,7 +34,7 @@ class ArknightsConfig(AzurLaneConfig, ConfigUpdater, GeneratedConfig):
|
||||
def save(self, mod_name='maa'):
|
||||
super().save(mod_name)
|
||||
|
||||
def get_mtime(self) -> datetime:
|
||||
def get_mtime(self):
|
||||
timestamp = os.stat(filepath_config(self.config_name, mod_name='maa')).st_mtime
|
||||
mtime = datetime.fromtimestamp(timestamp).replace(microsecond=0)
|
||||
return mtime
|
||||
|
||||
Reference in New Issue
Block a user