Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error When Trying to Show Video #112

Closed
ernestoluciano opened this issue Jun 4, 2020 · 1 comment
Closed

Error When Trying to Show Video #112

ernestoluciano opened this issue Jun 4, 2020 · 1 comment
Labels

Comments

@ernestoluciano
Copy link

ERROR [flask.app] Exception on /video [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.7/dist-packages/flask/_compat.py", line 35, in reraise
raise value
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "/usr/local/lib/python3.7/dist-packages/flask_login/utils.py", line 228, in decorated_view
return func(*args, **kwargs)
File "/root/FQM/app/helpers.py", line 136, in decorated
return function(*args, **kwargs)
File "/root/FQM/app/views/customize.py", line 117, in video
media_record = data.Media.get(form.video.data)
AttributeError: type object 'Media' has no attribute 'get'
Traceback (most recent call last):
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python3.7/dist-packages/flask/_compat.py", line 35, in reraise
raise value
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functionsrule.endpoint
File "/usr/local/lib/python3.7/dist-packages/flask_login/utils.py", line 228, in decorated_view
return func(*args, **kwargs)
File "/root/FQM/app/helpers.py", line 136, in decorated
return function(*args, **kwargs)
File "/root/FQM/app/views/customize.py", line 117, in video
media_record = data.Media.get(form.video.data)
AttributeError: type object 'Media' has no attribute 'get'

@ernestoluciano ernestoluciano changed the title I am Getting this Error when trying to Show Video Error When Trying to Show Video Jun 4, 2020
@mrf345 mrf345 added the bug label Jun 4, 2020
mrf345 added a commit that referenced this issue Jun 4, 2020
- Refactor `customize.py` legacy code
- Add test coverage for `customize.py`
- Add some helpers
- Fix yesterday's refactoring bugs 🤦‍♂️. resolves #119 #118 #115 #112
@mrf345
Copy link
Owner

mrf345 commented Jun 4, 2020

Hi @ernestoluciano , thanks for reporting #119 #118 #115 #112

I think I've passed some code refactoring in that part of the code-base yesterday, forgetting that it wasn't integration tested yet.

Sorry for the mess. I've added some tests and fixed them in #120
Please let me know if the mentioned issues still persist.

@mrf345 mrf345 closed this as completed Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants