From 0c5c0f713df67472adecd7546a73e79b7db21b57 Mon Sep 17 00:00:00 2001 From: pyup-bot Date: Tue, 11 Sep 2018 14:20:05 +0200 Subject: [PATCH 1/2] Update olefile from 0.45.1 to 0.46 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index d131cab..bde1d3f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -37,7 +37,7 @@ kombu==4.2.1 lxml==4.2.4 numpy==1.15.1 oauthlib==2.1.0 -olefile==0.45.1 +olefile==0.46 pandas==0.23.4 Pillow==5.2.0 psycopg2-binary==2.7.5 From b7feceb5c023b89df06280e00134ea7b65690b0b Mon Sep 17 00:00:00 2001 From: DEKHTIARJonathan Date: Tue, 11 Sep 2018 16:20:19 +0200 Subject: [PATCH 2/2] Attribute name error fix - Publish Social Networks --- feedcrunch_api_v1/views.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/feedcrunch_api_v1/views.py b/feedcrunch_api_v1/views.py index 5d1e70b..5bdd022 100644 --- a/feedcrunch_api_v1/views.py +++ b/feedcrunch_api_v1/views.py @@ -578,7 +578,7 @@ def post(self, request, apikey=""): link = unicodedata.normalize('NFC', request.POST['link']) # We separate each tag and create a list out of it. - tags = unicodedata.normalize('NFC', request.POST['tags']).split(',') + tags = unicodedata.normalize('NFC', request.POST['tags']).split(',') activated_bool = str2bool(unicodedata.normalize('NFC', request.POST['activated'])) @@ -615,16 +615,16 @@ def post(self, request, apikey=""): RSSArticle_Assoc_obj.save() if twitter_bool and user.is_social_network_enabled(network="twitter"): - tasks.publish_on_twitter.delay(idArticle=tmp_post.id) + tasks.publish_on_twitter.delay(id_article=tmp_post.id) if facebook_bool and user.is_social_network_enabled(network="facebook"): - tasks.publish_on_facebook.delay(idArticle=tmp_post.id) + tasks.publish_on_facebook.delay(id_article=tmp_post.id) if linkedin_bool and user.is_social_network_enabled(network="linkedin"): - tasks.publish_on_linkedin.delay(idArticle=tmp_post.id) + tasks.publish_on_linkedin.delay(id_article=tmp_post.id) if slack_bool and user.is_social_network_enabled(network="slack"): - tasks.publish_on_slack.delay(idArticle=tmp_post.id) + tasks.publish_on_slack.delay(id_article=tmp_post.id) payload["success"] = True payload["post_id"] = str(tmp_post.id) @@ -695,16 +695,16 @@ def put(self, request, post_id=None): tmp_post.save() if twitter_bool and request.user.is_social_network_enabled(network="twitter"): - tasks.publish_on_twitter.delay(idArticle=tmp_post.id) + tasks.publish_on_twitter.delay(id_article=tmp_post.id) if facebook_bool and request.user.is_social_network_enabled(network="facebook"): - tasks.publish_on_facebook.delay(idArticle=tmp_post.id) + tasks.publish_on_facebook.delay(id_article=tmp_post.id) if linkedin_bool and request.user.is_social_network_enabled(network="linkedin"): - tasks.publish_on_linkedin.delay(idArticle=tmp_post.id) + tasks.publish_on_linkedin.delay(id_article=tmp_post.id) if slack_bool and request.user.is_social_network_enabled(network="slack"): - tasks.publish_on_slack.delay(idArticle=tmp_post.id) + tasks.publish_on_slack.delay(id_article=tmp_post.id) payload["success"] = True payload["post_id"] = str(post_id)