Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
6e5bf9f
reduce cache size (#21)
Kilo59 May 2, 2020
da822ba
Update Procfile
Kilo59 May 2, 2020
b085652
Update Procfile
Kilo59 May 3, 2020
a1dcfb4
Update jhu.py
Kilo59 May 3, 2020
cc768a9
update max requests and max jitters
Kilo59 May 4, 2020
ba056ce
Add .deepsource.toml
deepsourcebot May 7, 2020
e54724e
Update Procfile
Kilo59 May 8, 2020
170eb12
Cache mem optimize (#23)
Kilo59 May 9, 2020
7fe38b9
Sentry (#24)
Kilo59 May 9, 2020
96efc92
use official middleware (#25)
Kilo59 May 9, 2020
ecb0a68
cache redis json serialization error
Kilo59 May 9, 2020
464453d
fix nyt redis serialization error
Kilo59 May 9, 2020
aa8b51d
refactor Timeline class to pydantic model
tanwinn May 20, 2020
f98447e
partial recovery fix (#31)
Kilo59 May 20, 2020
4bde047
Formatting & version (#32)
Kilo59 May 20, 2020
a955670
update FastAPI .54.1 -> .64.1 (#34)
Kilo59 Jul 28, 2020
eaebf76
update uvicorn
Kilo59 Aug 1, 2020
3a2975f
2 workers
Kilo59 Aug 1, 2020
d4088c6
Merge branch 'master' into refactor#28
Kilo59 Aug 10, 2020
f53e661
'Refactored by Sourcery' (#35)
sourcery-ai[bot] Aug 10, 2020
ba5050e
Refactored by Sourcery (#33)
sourcery-ai[bot] Aug 10, 2020
a4fd67b
fix Coordinates import
Kilo59 Sep 14, 2020
76014f7
fix jhu timeline init call
Kilo59 Sep 14, 2020
cf65e6e
update requirements
Kilo59 Sep 14, 2020
d954534
Merge pull request #30 from Kilo59/refactor#28
Kilo59 Sep 14, 2020
d66ce54
Merge branch 'master' into master
Kilo59 Sep 14, 2020
239c3bf
fix ValueError
Kilo59 Oct 29, 2020
a9816e9
add StatusCake uptime monitoring
Kilo59 Mar 13, 2021
578b60e
revert to 1 hour cache
Kilo59 Mar 21, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use official middleware (#25)
  • Loading branch information
Kilo59 authored May 9, 2020
commit 96efc9231754c06ca2fd5d524f0fae3b04feb7c8
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pydantic = {extras = ["dotenv"],version = "*"}
python-dateutil = "*"
requests = "*"
scout-apm = "*"
sentry-asgi = "*"
sentry-sdk = "*"
uvicorn = "*"

[requires]
Expand Down
10 changes: 2 additions & 8 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
import logging

import pydantic
import sentry_asgi
import sentry_sdk
import uvicorn
from fastapi import FastAPI, Request, Response
from fastapi.middleware.cors import CORSMiddleware
from fastapi.middleware.gzip import GZipMiddleware
from fastapi.responses import JSONResponse
from scout_apm.async_.starlette import ScoutMiddleware
from sentry_sdk.integrations.asgi import SentryAsgiMiddleware

from .config import get_settings
from .data import data_source
Expand Down Expand Up @@ -55,7 +55,7 @@
# Sentry Error Tracking
if SETTINGS.sentry_dsn: # pragma: no cover
LOGGER.info("Adding Sentry middleware")
APP.add_middleware(sentry_asgi.SentryMiddleware)
APP.add_middleware(SentryAsgiMiddleware)

# Enable CORS.
APP.add_middleware(
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ python-dateutil==2.8.1
python-dotenv==0.13.0
requests==2.23.0
scout-apm==2.14.1
sentry-asgi==0.2.0
sentry-sdk==0.14.3
six==1.14.0
starlette==0.13.2
Expand Down