feat: Store part key/file in global names dict
This commit is contained in:
parent
7c48b67132
commit
2ae12664e5
|
@ -2,6 +2,7 @@ import json
|
|||
from urllib.parse import urlparse, parse_qs
|
||||
|
||||
data = {}
|
||||
names = {}
|
||||
|
||||
def main():
|
||||
"""
|
||||
|
@ -102,6 +103,9 @@ def main():
|
|||
part_key = part_element.get('key')
|
||||
part_file = part_element.get('file')
|
||||
|
||||
if part_key is not None:
|
||||
names[part_key] = part_file
|
||||
|
||||
# At this point, part_key and part_file are available.
|
||||
# The user has not specified what to do with them yet.
|
||||
# For example, to print them:
|
||||
|
|
Loading…
Reference in New Issue
Block a user