8000 [BUG 🐞] CourseCompletionStatus boolean properties cast issue · Issue #21 · hexatester/moodlepy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[BUG 🐞] CourseCompletionStatus boolean properties cast issue #21
Open
@jbpenrath

Description

@jbpenrath

Describe the bug

core_completion_get_course_completion_status response has a cast issue. The class CourseCompletionStatus cast boolean values as integer that is weird.

To Reproduce
Steps to reproduce the behavior:

  1. Call the 'core_completion_get_course_completion_status' ws function for a relevant courseid/userid couple
  2. See that completed and complete property returned by Moodle are boolean values but once passed to CourseCompletionStatus there are integers...

Expected behavior
Boolean values returned by the Moodle API should be cast as bool by MoodlePy.

Desktop (please complete the following information):

  • Python Version 3.10
  • Version 0.24.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0