File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22"""
33Fetch CC photo license data from Flickr API for quarterly analysis.
44"""
5+
6+ # Standard library
57import argparse
68import csv
79import json
1012import time
1113import traceback
1214
15+ # Third-party
1316import flickrapi
1417from dotenv import load_dotenv
1518from pygments import highlight
1619from pygments .formatters import TerminalFormatter
1720from pygments .lexers import PythonTracebackLexer
1821
1922sys .path .append (os .path .join (os .path .dirname (__file__ ), ".." ))
23+ # First-party/Local
2024import shared # noqa: E402
2125
2226LOGGER , 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 } " )
You can’t perform that action at this time.
0 commit comments