++
This commit is contained in:
9
api/tasks.py
Normal file
9
api/tasks.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from celery import Celery
|
||||
|
||||
app = Celery(
|
||||
'prod',
|
||||
broker='redis://localhost:6379/0'
|
||||
)
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.start()
|
||||
@@ -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"]:
|
||||
|
||||
Reference in New Issue
Block a user