This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.4" | |
services: | |
db: | |
restart: always | |
image: postgres | |
volumes: | |
- pgdata:/var/lib/postgresql/data | |
environment: | |
- POSTGRES_USER=postgres |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2020-02-13 20:11:45,652: WARNING/ForkPoolWorker-2] GET EVENTS task has been called now | |
[2020-02-13 20:11:45,706: WARNING/ForkPoolWorker-1] /usr/local/lib/python3.6/site-packages/celery/app/trace.py:561: RuntimeWarning: Exception raised outside body: FileNotFoundError(2, 'No such file or directory'): | |
Traceback (most recent call last): | |
File "/usr/local/lib/python3.6/site-packages/celery/app/trace.py", line 465, in trace_task | |
state, retval, uuid, args, kwargs, None, | |
File "/usr/local/lib/python3.6/site-packages/celery_once/tasks.py", line 141, in after_return | |
self.once_backend.clear_lock(key) | |
File "/usr/local/lib/python3.6/site-packages/celery_once/backends/file.py", line 76, in clear_lock | |
os.remove(lock_path) | |
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/celery_once/qo_apimb.tasks.ge_52094e3196ca05f36eb013e2b749ce03' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"total":34 | |
"per-page":20 | |
"offset":0 | |
"sports":[ | |
0:{ | |
"name":"American Football" | |
"id":1 | |
"type":"SPORT" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/Users/mac/PycharmProjects/testmbfunctions/virenv/lib/python3.6/site-packages/celery/app/trace.py", line 382, in trace_task | |
R = retval = fun(*args, **kwargs) | |
File "/Users/mac/PycharmProjects/testmbfunctions/virenv/lib/python3.6/site-packages/celery/app/trace.py", line 641, in __protected_call__ | |
return self.run(*args, **kwargs) | |
File "/Users/mac/PycharmProjects/testmbfunctions/testpro/testapp/tasks.py", line 43, in get_events | |
ma, created = Ma.objects.update_or_create(market_id=market_id) | |
File "/Users/mac/PycharmProjects/testmbfunctions/virenv/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method | |
return getattr(self.get_queryset(), name)(*args, **kwargs) | |
File "/Users/mac/PycharmProjects/testmbfunctions/virenv/lib/python3.6/site-packages/django/db/models/query.py", line 559, in update_or_create |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macs-MacBook-Pro:autobets mac$ docker logs -f 01f17a69e4417d85d4ba7bad187a10e5f8c52ccc1226147d1e127f22834b3cf1 | |
The files belonging to this database system will be owned by user "postgres". | |
This user must also own the server process. | |
The database cluster will be initialized with locale "en_US.utf8". | |
The default database encoding has accordingly been set to "UTF8". | |
The default text search configuration will be set to "english". | |
Data page checksums are disabled. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IndexError Traceback (most recent call last) | |
<ipython-input-68-525af8799900> in <module> | |
5 return e_push_count.loc[e_push_count['mini_e'] < row['push_count']].iloc[-1]['percent_e'] | |
6 | |
----> 7 df2['push_count_score'] = df.apply(add_push_count, axis=1) | |
8 | |
9 | |
c:\Users\Thomas Callaghan\PycharmProjects\SFDCAPI\venv\lib\site-packages\pandas\core\frame.py in apply(self, func, axis, broadcast, raw, reduce, result_type, args, **kwds) | |
6485 args=args, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"count":1,"next":null,"previous":null,"results":[{"balance":10.0,"exposure":7.0,"free_funds":5.0}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"count":1,"next":null,"previous":null,"results":[{"balance":10.0,"exposure":7.0,"free_funds":5.0}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"TIMESTAMP": "2019-01-17 12:10:23.801283", "id": 1015917799320016, "name": "Alexander Zverev vs Jeremy Chardy", "sport-id": 9, "start": "2019-01-17T09:29:00.000Z", "in-running-flag": true, "allow-live-betting": true, "category-id": [9, 319515298390018, 380069543210027, 410468520880009, 647093922800012, 690300107130014, 1005847502570016], "status": "open", "volume": 54528.13359, "event-participants": [{"id": 1015917799610016, "event-id": 1015917799320016, "participant-name": "Jeremy Chardy", "number": 2}, {"id": 1015917799760015, "event-id": 1015917799320016, "participant-name": "Alexander Zverev", "number": 1}], "markets": [{"live": true, "event-id": 1015917799320016, "id": 1015917800140015, "name": "Moneyline", "runners": [{"withdrawn": false, "prices": [{"available-amount": 1038.04204, "currency": "EUR", "odds-type": "DECIMAL", "odds": 1.10638, "decimal-odds": 1.10638, "side": "back", "exchange-type": "back-lay"}, {"available-amount": 923.42189, "currency": "EUR", "odds-type": "DECIMAL", "odds": 1.10526, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import absolute_import, unicode_literals | |
from django.core.management.base import BaseCommand, CommandError | |
from backend.models import MBEvent, MBMarkets, MBRun, MBPrice | |
import requests | |
from matchbook.endpoints.betting import Betting | |
from matchbook.enums import Side, Status, AggregationType | |
from django.conf import settings | |
from django.utils import timezone | |
from backend.client import get_mb_client | |
from matchbook.endpoints.marketdata import MarketData |
NewerOlder