Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions demo/_synctiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,11 +450,7 @@ def sync_slide(
# Get current metadata
try:
resp = storage.object(metadata_key_name).get()
metadata: SlideMetadata | None = json.load(
gzip.open(resp['Body'])
if resp.get('ContentEncoding') == 'gzip'
else resp['Body']
)
metadata: SlideMetadata | None = json.load(gzip.open(resp['Body']))
except storage.NoSuchKey:
metadata = None

Expand Down Expand Up @@ -679,11 +675,7 @@ def start_retile(
# If the stamp is changing, mark bucket dirty
try:
resp = storage.object(PurePath(METADATA_NAME)).get()
metadata: BucketMetadata = json.load(
gzip.open(resp['Body'])
if resp.get('ContentEncoding') == 'gzip'
else resp['Body']
)
metadata: BucketMetadata = json.load(gzip.open(resp['Body']))
old_stamp = metadata['stamp']
except storage.NoSuchKey:
old_stamp = None
Expand Down
3 changes: 0 additions & 3 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,6 @@
if (!tileExists.apply(this, arguments)) {
return false;
}
if (!image.sparse) {
return true;
}
var sparse = image.sparse[level];
if (!sparse) {
return true;
Expand Down