Skip to content

Commit d3db8a6

Browse files
Fix code style to match project conventions
1 parent cb5050e commit d3db8a6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/1-fetch/flickr_fetch.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
"""
33
Fetch CC photo license data from Flickr API for quarterly analysis.
44
"""
5+
6+
# Standard library
57
import argparse
68
import csv
79
import json
@@ -10,13 +12,15 @@
1012
import time
1113
import traceback
1214

15+
# Third-party
1316
import flickrapi
1417
from dotenv import load_dotenv
1518
from pygments import highlight
1619
from pygments.formatters import TerminalFormatter
1720
from pygments.lexers import PythonTracebackLexer
1821

1922
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
23+
# First-party/Local
2024
import shared # noqa: E402
2125

2226
LOGGER, PATHS = shared.setup(__file__)
@@ -192,7 +196,9 @@ def main():
192196
for license_id in sorted(license_counts.keys()):
193197
count = license_counts[license_id]
194198
license_name = FLICKR_LICENSES[license_id]
195-
LOGGER.info(f" License {license_id} ({license_name}): {count} photos")
199+
LOGGER.info(
200+
f" License {license_id} ({license_name}): {count} photos"
201+
)
196202

197203
except shared.QuantifyingException as e:
198204
LOGGER.error(f"Error: {e}")

0 commit comments

Comments
 (0)