File tree 2 files changed +24
-3
lines changed
2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ title : " War and Pizza"
3
+ subcat : podcast
4
+ authors :
5
+ - " Tina Antolini"
6
+ - " Anastacia Marx de Salcedo"
7
+ year : 2015
8
+ month : oct
9
+ external_url : " https://99percentinvisible.org/episode/war-and-pizza/"
10
+ course : things
11
+ tags :
12
+ - war
13
+ - food
14
+ series : 99pi
15
+ number : 186
16
+ minutes : 16
17
+ ---
18
+
19
+ > But the real innovation was coming up with a preserved protein. Ancient Egyptians went to war carrying dried fish...
20
+
21
+ How military needs drive culinary innovation.
Original file line number Diff line number Diff line change @@ -644,13 +644,13 @@ def move_gfile(glink, folders):
644
644
if len (shortcuts ) != 1 :
645
645
print ("Creating a (new, private) shortcut..." )
646
646
create_drive_shortcut (gfid , file .get ('name' ), private_fid )
647
- else :
647
+ elif len ( shortcuts ) == 1 :
648
648
s = shortcuts [0 ]
649
649
print (f"Moving existing shortcut from { FOLDER_LINK .format (s ['parents' ][0 ])} to { FOLDER_LINK .format (private_fid )} ..." )
650
650
move_drive_file (s ['id' ], private_fid , previous_parents = s ['parents' ])
651
- else :
651
+ if not public_fid or not private_fid or len ( shortcuts ) > 1 :
652
652
for s in shortcuts :
653
- print (f"Trashing the existing shortcut in { FOLDER_LINK .format (s ['parents' ][0 ])} ..." )
653
+ print (f"Trashing the old shortcut in { FOLDER_LINK .format (s ['parents' ][0 ])} ..." )
654
654
trash_drive_file (s ['id' ])
655
655
print ("Done!" )
656
656
You can’t perform that action at this time.
0 commit comments