Skip to content

Commit 5a53539

Browse files
committed
Refactor code to import pictures from cache
1 parent 394220d commit 5a53539

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

main.py

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -37,37 +37,37 @@
3737
"pass_ensa": hashlib.sha1(ensa_pass.encode()).hexdigest(),
3838
}
3939

40-
print(ensa_infos)
41-
print(headers)
40+
# print(ensa_infos)
41+
# print(headers)
4242

4343
collections = [
44-
# {
45-
# "function": export_ind,
46-
# "method": "ExportInd",
47-
# "params": {
48-
# **ensa_infos,
49-
# "type": "etd",
50-
# "id": "*",
51-
# },
52-
# },
53-
# {
54-
# "function": export_ind,
55-
# "method": "ExportInd",
56-
# "params": {
57-
# **ensa_infos,
58-
# "type": "adm",
59-
# "id": "*",
60-
# },
61-
# },
62-
# {
63-
# "function": export_ind,
64-
# "method": "ExportInd",
65-
# "params": {
66-
# **ensa_infos,
67-
# "type": "esn",
68-
# "id": "*",
69-
# },
70-
# },
44+
{
45+
"function": export_ind,
46+
"method": "ExportInd",
47+
"params": {
48+
**ensa_infos,
49+
"type": "etd",
50+
"id": "*",
51+
},
52+
},
53+
{
54+
"function": export_ind,
55+
"method": "ExportInd",
56+
"params": {
57+
**ensa_infos,
58+
"type": "adm",
59+
"id": "*",
60+
},
61+
},
62+
{
63+
"function": export_ind,
64+
"method": "ExportInd",
65+
"params": {
66+
**ensa_infos,
67+
"type": "esn",
68+
"id": "*",
69+
},
70+
},
7171
{
7272
"function": export_pictures,
7373
"method": "ExportPhotos",
@@ -98,7 +98,7 @@ async def main(args):
9898
if run == 'sesame' or run == '':
9999
print("Starting import_ind...")
100100
start_time = datetime.now()
101-
# await import_ind()
101+
await import_ind()
102102
await import_pictures()
103103
end_time = datetime.now()
104104
execution_time = end_time - start_time

0 commit comments

Comments
 (0)