Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Mar 12, 2023
1 parent fbeee10 commit 361d576
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions quick_backup_multi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

from mcdreforged.api.all import *

from quick_backup_multi.config import Configure
from quick_backup_multi.config import Configuration
from quick_backup_multi.constant import BACKUP_DONE_EVENT, Prefix, RESTORE_DONE_EVENT, TRIGGER_BACKUP_EVENT, \
CONFIG_FILE, TRIGGER_RESTORE_EVENT

config: Configure
config: Configuration
server_inst: PluginServerInterface
HelpMessage: RTextBase
slot_selected = None # type: Optional[int]
Expand Down Expand Up @@ -531,7 +531,7 @@ def get_slot_node():

def load_config(server: ServerInterface, source: CommandSource or None = None):
global config
config = server_inst.load_config_simple(CONFIG_FILE, target_class=Configure, in_data_folder=False, source_to_reply=source)
config = server_inst.load_config_simple(CONFIG_FILE, target_class=Configuration, in_data_folder=False, source_to_reply=source)
last = 0
for i in range(get_slot_count()):
this = config.slots[i].delete_protection
Expand Down
4 changes: 2 additions & 2 deletions quick_backup_multi/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class SlotInfo(Serializable):
delete_protection: int = 0


class Configure(Serializable):
class Configuration(Serializable):
size_display: bool = True
turn_off_auto_save: bool = True
ignored_files: List[str] = [
Expand Down Expand Up @@ -55,7 +55,7 @@ def is_file_ignored(self, file_name: str) -> bool:


if __name__ == '__main__':
config = Configure().get_default()
config = Configuration().get_default()
config.ignored_files = ['*.abc', 'test', 'no*']
assert config.is_file_ignored('.abc')
assert config.is_file_ignored('1.abc')
Expand Down

0 comments on commit 361d576

Please sign in to comment.