Skip to content

Commit 903fce7

Browse files
author
Khemarato Bhikkhu
committed
a 99pi
1 parent 6ca5a09 commit 903fce7

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

_content/av/war-and-pizza_99pi.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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.

scripts/gdrive.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -644,13 +644,13 @@ def move_gfile(glink, folders):
644644
if len(shortcuts) != 1:
645645
print("Creating a (new, private) shortcut...")
646646
create_drive_shortcut(gfid, file.get('name'), private_fid)
647-
else:
647+
elif len(shortcuts) == 1:
648648
s=shortcuts[0]
649649
print(f"Moving existing shortcut from {FOLDER_LINK.format(s['parents'][0])} to {FOLDER_LINK.format(private_fid)} ...")
650650
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:
652652
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])} ...")
654654
trash_drive_file(s['id'])
655655
print("Done!")
656656

0 commit comments

Comments
 (0)