services.wger: updated to newest version + added auth proxy header

This commit is contained in:
eyjhb 2025-01-02 17:21:21 +01:00
parent 5c65f7f922
commit 94e08fd2f0
Signed by: eyjhb
GPG key ID: 609F508E3239F920
3 changed files with 19 additions and 46 deletions

View file

@ -1,35 +0,0 @@
diff --git a/wger/tasks.py b/wger/tasks.py
index b1b4b7c65..50bf95b7c 100644
--- a/wger/tasks.py
+++ b/wger/tasks.py
@@ -31,7 +31,7 @@ from django.utils.crypto import get_random_string
# Third Party
import requests
-from invoke import task
+from invoke import task, Program, Collection
from tqdm import tqdm
@@ -358,3 +358,20 @@ def database_exists():
sys.exit(0)
else:
return True
+
+def main():
+ ns = Collection(
+ start,
+ bootstrap,
+ create_settings,
+ create_or_reset_admin,
+ migrate_db,
+ load_fixtures,
+ load_online_fixtures,
+ )
+ program = Program(namespace=ns)
+ program.run()
+
+
+if __name__ == "__main__":
+ main()