Skip to content

Commit 26e2810

Browse files
committed
comic.py: linting
1 parent 11e3093 commit 26e2810

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

examples/spectra6/comic_vine/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# comic.py
22

3+
`comic.py` fetches and displays a random comic book cover from the Comic Vine API.
4+
35
- [comic.py](#comicpy)
46
- [About Comic Vine](#about-comic-vine)
57
- [Pre-requisites](#pre-requisites)
68
- [Usage](#usage)
79
- [Notes](#notes)
810

9-
10-
`comic.py` fetches and displays a random comic book cover from the Comic Vine API. The code
11+
The code
1112

1213
- Searches for a list of comic volumes by title.
1314
- Selects a random issue from the chosen volume (or volumes)
@@ -30,5 +31,5 @@ You'll need to have the Inky library installed and your virtual environment acti
3031

3132
## Notes
3233

33-
- You can change the search query by editing the `SEARCH_QUERY` variable - the default is 'Weird Science', which looks like a great read.
34+
- You can change the volume search query by editing the `SEARCH_QUERY` variable - the default is 'Weird Science', which looks like a great read.
3435
- Set `RANDOM_VOLUME = True` to select a random volume instead choosing of the first search result. We found this varied things up when there were multiple volumes with the same title.

examples/spectra6/comic_vine/comic.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
Change the search query to the comic series you want to display!
55
"""
66

7+
import random
8+
from io import BytesIO
9+
710
import requests
811
from PIL import Image
9-
from io import BytesIO
12+
1013
from inky.auto import auto
11-
import random
1214

1315
# Comic Vine API details
1416
API_KEY = "API_KEY_GOES_HERE"

0 commit comments

Comments
 (0)