Commit c20466d3 authored by 段英荣's avatar 段英荣

modify

parent ac42aad0
......@@ -243,20 +243,6 @@ def get_type_info_map():
)
]
try:
pk_blacklist_map = settings.DATA_SYNC.get('pk_blacklist', {})
assert isinstance(pk_blacklist_map, dict)
except (ImportError, AttributeError):
traceback.print_exc()
print('fallback to empty pk_blacklist_map', file=sys.stderr)
pk_blacklist_map = {}
for type_info in type_info_list:
type_info.pk_blacklist = pk_blacklist_map.get(type_info.name, ())
print('loaded pk_blacklist for {}: {}'.format(
type_info.name,
sorted(list(type_info.pk_blacklist)),
), file=sys.stderr)
type_info_map = {
type_info.name: type_info
for type_info in type_info_list
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment