Skip to content

Commit

Permalink
Merge pull request #13 from ONE-F-M/186379225
Browse files Browse the repository at this point in the history
Fix Frappe
  • Loading branch information
mymi14s authored Nov 29, 2023
2 parents 384731c + db2a1b9 commit 67c0d6a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
3 changes: 3 additions & 0 deletions one_lms/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,9 @@



required_apps = ['frappe', "lms"]



website_route_rules = [
{"from_route": "/batch/learn", "to_route": "one_lms/www/batch/learn"},
Expand Down
5 changes: 1 addition & 4 deletions one_lms/overrides/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ def get_last_completed_lesson(course):
"Get the last completed lesson for this user or revert to the first lesson of the course"
has_progress = frappe.get_all("LMS Course Progress",{'course':course,'member':frappe.session.user,'status':'Complete'},['lesson','chapter'])
return has_progress[0] if has_progress else {}







def get_lesson_details(chapter):
Expand Down
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
install_requires = f.read().strip().split("\n")

# get version from __version__ variable in one_lms/__init__.py
from one_lms import __version__ as version
# from one_lms import __version__ as version

setup(
name="one_lms",
version=version,
version="1.0",
description="Extention to Frappe LMS",
author="One Facilities Management",
author_email="info@one-fm.com",
author_email="support@one-fm.com",
packages=find_packages(),
zip_safe=False,
include_package_data=True,
Expand Down

0 comments on commit 67c0d6a

Please sign in to comment.