This commit is contained in:
2026-03-25 12:39:54 +01:00
parent 87820051a7
commit 7abb819e76
6 changed files with 76 additions and 63 deletions

9
api/tasks.py Normal file
View File

@@ -0,0 +1,9 @@
from celery import Celery
app = Celery(
'prod',
broker='redis://localhost:6379/0'
)
if __name__ == '__main__':
app.start()

View File

@@ -90,7 +90,9 @@ def reprocess_eval(request):
ep_items = request.data.get("ep_items")
efficiency = request.data.get("efficiency", 0.55)
matprices = {item["typeID"]: {'sell': item["prices"]["sell"]["min"], 'buy': item["prices"]["buy"]["max"]} for item in ep_mat['items']}
matprices = {item["typeID"]: {'sell': item["prices"]["sell"]["min"],
'buy': item["prices"]["buy"]["max"]}
for item in ep_mat['items']}
item_reprocess = []
for rawitem in ep_items["items"]: