aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2021-09-07 11:39:09 +0100
committerGravatar Chris Lovering <[email protected]>2021-09-07 11:39:09 +0100
commitd612110b67269e7132bd0bc891f2c90a9b806c89 (patch)
tree90524150d8e5625596486ef76fa2af9a96360ade
parentFix spelling of `initialising` in manage.py (diff)
Remove unnecessary variable
Co-authored-by: Vivaan Verma <[email protected]>
-rwxr-xr-xmanage.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/manage.py b/manage.py
index 22ae45d7..0fa8ebe3 100755
--- a/manage.py
+++ b/manage.py
@@ -229,9 +229,8 @@ class SiteManager:
def main() -> None:
"""Entry point for Django management script."""
- # Always run metricity init in CI
- in_ci = os.environ.get("CI", "false").lower() == "true"
- if in_ci:
+ # Always run metricity init when in CI, indicated by the CI env var
+ if os.environ.get("CI", "false").lower() == "true":
SiteManager.wait_for_postgres()
SiteManager.run_metricity_init()