mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-30 05:03:54 +08:00
Refactor: Move redirect_utils into module.config
This commit is contained in:
@@ -4,9 +4,9 @@ from copy import deepcopy
|
|||||||
from cached_property import cached_property
|
from cached_property import cached_property
|
||||||
|
|
||||||
from module.base.timer import timer
|
from module.base.timer import timer
|
||||||
|
from module.config.redirect_utils.shop_filter import bp_redirect
|
||||||
from module.config.utils import *
|
from module.config.utils import *
|
||||||
from module.logger import logger
|
from module.logger import logger
|
||||||
from module.redirect_utils.shop_filter import bp_redirect
|
|
||||||
|
|
||||||
CONFIG_IMPORT = '''
|
CONFIG_IMPORT = '''
|
||||||
import datetime
|
import datetime
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ NAME_TO_SERIES = {
|
|||||||
'1': 1, '2': 2, '3': 3, '4': 4,
|
'1': 1, '2': 2, '3': 3, '4': 4,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def bp_redirect(value):
|
def bp_redirect(value):
|
||||||
"""
|
"""
|
||||||
Redirects shop filter old format for research blueprints
|
Redirects shop filter old format for research blueprints
|
||||||
@@ -43,5 +44,6 @@ def bp_redirect(value):
|
|||||||
|
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
print(bp_redirect('PlateGeneralT1 > DRAgirBP > CatT3 > PROdinBP > Chip > PR1BP > PRBP > DRDrakeBP > DR2BP'))
|
print(bp_redirect('PlateGeneralT1 > DRAgirBP > CatT3 > PROdinBP > Chip > PR1BP > PRBP > DRDrakeBP > DR2BP'))
|
||||||
Reference in New Issue
Block a user