Skip to content

Commit

Permalink
[IMP] returns json instead of rss feed
Browse files Browse the repository at this point in the history
  • Loading branch information
cvinh committed Apr 28, 2024
1 parent 66fc54c commit 67a059c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# generated from manifests external_dependencies
feedparser
3 changes: 3 additions & 0 deletions vidal_connector/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"depends": [
"base",
],
"external_dependencies": {
"python": ["feedparser"],
},
"data": [
"views/res_company_views.xml",
],
Expand Down
3 changes: 2 additions & 1 deletion vidal_connector/models/vidal_api.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging

import feedparse
import requests

from odoo import _, models
Expand Down Expand Up @@ -104,4 +105,4 @@ def api_get(self, url, query):
)
% (url_request)
)
return r
return feedparse.parse(r)

0 comments on commit 67a059c

Please # to comment.