From 79ed8328f27f6851c3665729b5aff0677e6bf70e Mon Sep 17 00:00:00 2001 From: Jemshid KK Date: Fri, 14 May 2021 12:20:16 +0530 Subject: [PATCH 1/4] Back to home after create and empty events list manage --- couchpotato/feed.py | 2 ++ couchpotato/home/templates/create_cp.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/couchpotato/feed.py b/couchpotato/feed.py index 19b98a7..aad807c 100644 --- a/couchpotato/feed.py +++ b/couchpotato/feed.py @@ -258,6 +258,8 @@ def MatchingEvents(self, leagueIds): eventsFromFeed = eventsFromFeed + self.Past15(leagueId) eventsFromChain = self.cp.EventsAllSortedForApi() matchingEvents = [] + if isinstance(eventsFromChain, type(None)): + return matchingEvents for k in range(len(eventsFromChain)): # eventFromChain = eventsFromChain.iloc[k] eventFromChain = eventsFromChain[k] diff --git a/couchpotato/home/templates/create_cp.html b/couchpotato/home/templates/create_cp.html index 1f5fbb0..1b5871e 100644 --- a/couchpotato/home/templates/create_cp.html +++ b/couchpotato/home/templates/create_cp.html @@ -237,12 +237,12 @@

Start Time

function(data, status){ if (data.success == 'Posted'){ alert(data.message) + window.location.href = '/' } // console.log(data.message) // console.log(data.message.id) - // window.location.href = '/' }); } From 06e79c2fd7ce3c1c8b4ad3f559ed36798fdf8e67 Mon Sep 17 00:00:00 2001 From: Jemshid KK Date: Fri, 14 May 2021 12:28:29 +0530 Subject: [PATCH 2/4] mongo and telegram to requirements --- requirements.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/requirements.txt b/requirements.txt index 56bffce..757f233 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,5 @@ +python-telegram-bot +pymongo django-sslserver bookiesports bos-mint From 254b639b5ebcfdf39ca59fc3df8d310ad6cfd416 Mon Sep 17 00:00:00 2001 From: Jemshid KK Date: Fri, 14 May 2021 12:37:28 +0530 Subject: [PATCH 3/4] minor --- requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 757f233..5ccb557 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ python-telegram-bot -pymongo django-sslserver bookiesports bos-mint From d80ccc8c2fb37e4d9bdf65f47b48f73de479dff4 Mon Sep 17 00:00:00 2001 From: Jemshid KK Date: Sat, 15 May 2021 11:56:44 +0530 Subject: [PATCH 4/4] Lean requirements.txt --- requirements.txt | 116 +++++++---------------------------------------- 1 file changed, 17 insertions(+), 99 deletions(-) diff --git a/requirements.txt b/requirements.txt index 5ccb557..79fc5bf 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,101 +1,19 @@ -python-telegram-bot -django-sslserver -bookiesports -bos-mint -bos-incidents - -aiohttp==3.7.4 -appdirs==1.4.4 -asgiref==3.3.1 -async-timeout==3.0.1 -asyncinit==0.2.4 -attrs==20.3.0 -backcall==0.2.0 -base58==2.0.1 -blinker==1.4 -bos-sync==0.3.0 -certifi==2020.12.5 -chardet==3.0.4 -click==7.1.2 -click-datetime==0.2 -colorlog==4.6.2 -dateutils==0.6.12 -decorator==4.4.2 -Django==3.1.6 -djangorestframework==3.12.2 -dnspython==2.0.0 -ecdsa==0.13.3 -email-validator==1.1.2 -Events==0.4 -expiringdict==1.2.1 -Flask==1.1.2 -Flask-Assets==2.0 -Flask-Mail==0.9.1 -Flask-Markdown==0.3 -Flask-Script==2.0.6 -Flask-SQLAlchemy==2.4.4 -Flask-WTF==0.14.3 -future==0.18.2 -graphenelib==1.0.1 -idna==2.8 -importlib-metadata==3.3.0 -ipython -ipython-genutils==0.2.0 -itsdangerous==1.1.0 -jedi==0.17.2 -Jinja2==2.11.3 +requests==2.22.0 +bookied_sync==0.0.3 +bos_incidents==0.4.1 +bos_mint==0.5.4 +click==8.0.0 +colorlog==5.0.1 +Django==3.2.3 +djangorestframework==3.12.4 +drf_yasg==1.20.0 jsonschema==3.2.0 -Markdown==3.3.3 -MarkupSafe==1.1.1 -multidict==5.1.0 -mysqlclient -numpy==1.19.4 -pandas -parso==0.7.1 +numpy==1.20.3 +pandas==1.2.4 peerplays==0.3.0 -pexpect==4.8.0 -pickleshare==0.7.5 -prettytable==2.0.0 -prompt-toolkit==3.0.8 -ptyprocess==0.6.0 -pycryptodome==3.9.9 -Pygments==2.7.4 -pylibscrypt==1.8.0 -pymongo==3.11.2 -pyrsistent==0.17.3 -python-dateutil==2.8.1 -pytz==2020.4 -PyYAML==5.4 -requests==2.22.0 -scrypt==0.8.17 -six==1.15.0 -SQLAlchemy==1.3.20 -sqlparse==0.4.1 -strict-rfc3339==0.7 -tqdm==4.54.1 -traitlets -treelib==1.6.1 -typing-extensions==3.7.4.3 -urllib3==1.24.3 -uWSGI -wcwidth==0.2.5 -webassets==2.0 -websocket-client==0.56.0 -websockets==8.1 -Werkzeug==1.0.1 -WTForms==2.3.3 -yarl==1.6.3 -zipp==3.4.0 -uritemplate -django-rest-swagger==2.2.0 -drf-yasg==1.20.0 -django-rest-swagger==2.2.0 -drf-yasg==1.20.0 -openapi-codec==1.3.2 -coreapi==2.3.3 -coreschema==0.0.4 -pyasn1==0.4.8 -pycparser==2.20 -pyparsing==2.4.7 -ruamel.yaml==0.16.12 -simplejson==3.17.2 +python_dateutil==2.8.1 +pytz==2021.1 +PyYAML==5.4.1 +strict_rfc3339==0.7 +telegram==0.0.1 +django-sslserver