Skip to content

Commit 8454676

Browse files
committed
Upgrade to the latest dependencies (fastapi, etc.)
1 parent a30fabd commit 8454676

File tree

3 files changed

+681
-498
lines changed

3 files changed

+681
-498
lines changed

demo-code/05-managing-your-environments/podcastapi/__main__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"""
22
Command-line entrypoint for podcastapi package
33
"""
4-
import os
54
from argparse import ArgumentParser
65

76
import uvicorn
@@ -11,7 +10,7 @@
1110

1211

1312
def get_parser() -> ArgumentParser:
14-
"""Returns the confiured ArgumentParser for this module"""
13+
"""Returns the configured ArgumentParser for this module"""
1514
parser = ArgumentParser()
1615
parser.add_argument(
1716
"-g", "--generate", dest="generate", action="store_true", required=False
@@ -24,7 +23,7 @@ def main():
2423
"""Entry point function. Loads FastAPI instance in uvicorn and instantiates tinydb"""
2524
args = get_parser().parse_args()
2625

27-
app_name = os.getenv("APP_NAME")
26+
# app_name = os.getenv("APP_NAME")
2827

2928
if args.generate:
3029
import_sample_data()

0 commit comments

Comments
 (0)