c2p-cmd commited on
Commit
9caef19
·
verified ·
1 Parent(s): a3b3a2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -38,8 +38,9 @@ def extract_snapshots(watchface_link: str, output_type='Both') -> list[str]:
38
  def extract_snapshots_from(watchface_links: list[str], output_kind='Both') -> list[str]:
39
  assert(watchface_links != None and len(watchface_links) >= 1)
40
 
 
41
  snapshots = []
42
- for watchface_link in watchface_links:
43
  images = extract_snapshots(watchface_link, output_kind)
44
  images = list(map(rename_file, images))
45
  snapshots += images
 
38
  def extract_snapshots_from(watchface_links: list[str], output_kind='Both') -> list[str]:
39
  assert(watchface_links != None and len(watchface_links) >= 1)
40
 
41
+ filtered_watchface_links = [link for link in watchface_links if link.endswith('watchface')]
42
  snapshots = []
43
+ for watchface_link in filtered_watchface_links:
44
  images = extract_snapshots(watchface_link, output_kind)
45
  images = list(map(rename_file, images))
46
  snapshots += images