Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion services/usage-stats/src/insert.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Ensure it uses asyncpg
if raw_url.startswith("postgresql://"):
raw_url = raw_url.replace("postgresql://", "postgresql+asyncpg://", 1)
elif not raw_url.startswith("postgresql+asyncpg://"):
else:
raise ValueError(
"Invalid DATABASE_URL: must start with postgresql:// or postgresql+asyncpg://"
)
Expand Down
2 changes: 1 addition & 1 deletion services/usage-stats/src/last_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Ensure it uses asyncpg
if raw_url.startswith("postgresql://"):
raw_url = raw_url.replace("postgresql://", "postgresql+asyncpg://", 1)
elif not raw_url.startswith("postgresql+asyncpg://"):
else:
raise ValueError(
"Invalid DATABASE_URL: must start with postgresql:// or postgresql+asyncpg://"
)
Expand Down
2 changes: 1 addition & 1 deletion services/usage-stats/src/macrostrat.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# Ensure the URL uses asyncmy driver
if raw_url.startswith("mysql://"):
raw_url = raw_url.replace("mysql://", "mysql+asyncmy://", 1)
elif not raw_url.startswith("mysql+asyncmy://"):
else:
raise ValueError(
"Invalid DATABASE_URL: must start with mysql:// or mysql+asyncmy://"
)
Expand Down
2 changes: 1 addition & 1 deletion services/usage-stats/src/rockd.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# Ensure the URL uses asyncmy driver
if raw_url.startswith("mysql://"):
raw_url = raw_url.replace("mysql://", "mysql+asyncmy://", 1)
elif not raw_url.startswith("mysql+asyncmy://"):
else:
raise ValueError(
"Invalid DATABASE_URL: must start with mysql:// or mysql+asyncmy://"
)
Expand Down