Skip to content

Conversation

@n00rsy
Copy link

@n00rsy n00rsy commented Dec 2, 2025

Issue number of the reported bug or feature request: RDISCROWD-8421

Describe your changes
Fixes Error

Traceback (most recent call last):
  File "/bb/libexec/gigwork-priv/python/lib/python3.9/site-packages/flask/app.py", line 2070, in wsgi_app
    response = self.full_dispatch_request()
  File "/bb/libexec/gigwork-priv/python/lib/python3.9/site-packages/flask/app.py", line 1515, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/bb/libexec/gigwork-priv/python/lib/python3.9/site-packages/flask_cors/extension.py", line 165, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/bb/libexec/gigwork-priv/python/lib/python3.9/site-packages/flask/app.py", line 1513, in full_dispatch_request
    rv = self.dispatch_request()
  File "/bb/libexec/gigwork-priv/python/lib/python3.9/site-packages/flask/app.py", line 1499, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "/bb/libexec/gigwork-priv/python/lib/python3.9/site-packages/flask_login/utils.py", line 272, in decorated_view
    return func(*args, **kwargs)
  File "/bb/libexec/gigwork-priv/python/lib/python3.9/site-packages/pybossa/util.py", line 227, in decorated_function
    return f(*args, **kwargs)
  File "/bb/libexec/gigwork-priv/python/lib/python3.9/site-packages/pybossa/view/projects.py", line 576, in upload_task_guidelines_image
    elif not is_admin_or_owner(project):
  File "/bb/libexec/gigwork-priv/python/lib/python3.9/site-packages/pybossa/view/projects.py", line 559, in is_admin_or_owner
    (project.owner_id == current_user.id or
AttributeError: 'tuple' object has no attribute 'owner_id'

@coveralls
Copy link

Pull Request Test Coverage Report for Build 19863620835

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 94.067%

Totals Coverage Status
Change from base Build 19639530476: 0.0%
Covered Lines: 17883
Relevant Lines: 19011

💛 - Coveralls

@n00rsy n00rsy requested review from dchhabda and peterkle December 3, 2025 15:10
error = False
return_code = 200
project = project_by_shortname(short_name)
project, owner, ps = project_by_shortname(short_name)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor. owner, ps as unused can be replaced with underscores

@n00rsy n00rsy merged commit cc964d2 into main Dec 3, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants