-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
166 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Active Users © 2022 | ||
# Author: Ameen Ahmed | ||
# Company: Level Up Marketing & Software Development Services | ||
# Licence: Please refer to license.txt | ||
# Licence: Please refer to LICENSE file | ||
|
||
|
||
__version__ = "1.0.5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Active Users © 2022 | ||
# Author: Ameen Ahmed | ||
# Company: Level Up Marketing & Software Development Services | ||
# Licence: Please refer to license.txt | ||
# Licence: Please refer to LICENSE file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Active Users © 2022 | ||
# Author: Ameen Ahmed | ||
# Company: Level Up Marketing & Software Development Services | ||
# Licence: Please refer to license.txt | ||
# Licence: Please refer to LICENSE file |
2 changes: 1 addition & 1 deletion
2
active_users/active_users/doctype/active_users_has_role/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Active Users © 2022 | ||
# Author: Ameen Ahmed | ||
# Company: Level Up Marketing & Software Development Services | ||
# Licence: Please refer to license.txt | ||
# Licence: Please refer to LICENSE file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
active_users/active_users/doctype/active_users_has_role/active_users_has_role.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
active_users/active_users/doctype/active_users_has_user/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Active Users © 2022 | ||
# Author: Ameen Ahmed | ||
# Company: Level Up Marketing & Software Development Services | ||
# Licence: Please refer to license.txt | ||
# Licence: Please refer to LICENSE file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
active_users/active_users/doctype/active_users_has_user/active_users_has_user.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Active Users © 2022 | ||
# Author: Ameen Ahmed | ||
# Company: Level Up Marketing & Software Development Services | ||
# Licence: Please refer to license.txt | ||
# Licence: Please refer to LICENSE file | ||
|
||
|
||
from frappe.model.document import Document | ||
|
||
|
||
class ActiveUsersHasUser(Document): | ||
pass | ||
pass |
2 changes: 1 addition & 1 deletion
2
active_users/active_users/doctype/active_users_has_user_type/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Active Users © 2022 | ||
# Author: Ameen Ahmed | ||
# Company: Level Up Marketing & Software Development Services | ||
# Licence: Please refer to license.txt | ||
# Licence: Please refer to LICENSE file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
active_users/active_users/doctype/active_users_has_user_type/active_users_has_user_type.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Active Users © 2022 | ||
# Author: Ameen Ahmed | ||
# Company: Level Up Marketing & Software Development Services | ||
# Licence: Please refer to license.txt | ||
# Licence: Please refer to LICENSE file | ||
|
||
|
||
from frappe.model.document import Document | ||
|
||
|
||
class ActiveUsersHasUserType(Document): | ||
pass | ||
pass |
2 changes: 1 addition & 1 deletion
2
active_users/active_users/doctype/active_users_notification_receiver/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Active Users © 2022 | ||
# Author: Ameen Ahmed | ||
# Company: Level Up Marketing & Software Development Services | ||
# Licence: Please refer to license.txt | ||
# Licence: Please refer to LICENSE file |
4 changes: 2 additions & 2 deletions
4
...ve_users/doctype/active_users_notification_receiver/active_users_notification_receiver.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Active Users © 2022 | ||
# Author: Ameen Ahmed | ||
# Company: Level Up Marketing & Software Development Services | ||
# Licence: Please refer to license.txt | ||
# Licence: Please refer to LICENSE file | ||
|
||
|
||
from frappe.model.document import Document | ||
|
||
|
||
class ActiveUsersNotificationReceiver(Document): | ||
pass | ||
pass |
2 changes: 1 addition & 1 deletion
2
active_users/active_users/doctype/active_users_settings/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Active Users © 2022 | ||
# Author: Ameen Ahmed | ||
# Company: Level Up Marketing & Software Development Services | ||
# Licence: Please refer to license.txt | ||
# Licence: Please refer to LICENSE file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 2 additions & 9 deletions
11
active_users/active_users/doctype/active_users_settings/active_users_settings.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,14 @@ | ||
# Active Users © 2022 | ||
# Author: Ameen Ahmed | ||
# Company: Level Up Marketing & Software Development Services | ||
# Licence: Please refer to license.txt | ||
# Licence: Please refer to LICENSE file | ||
|
||
|
||
import frappe | ||
from frappe.model.document import Document | ||
|
||
from active_users.utils import clear_document_cache, compare_versions | ||
from active_users import __version__ | ||
from active_users.utils.common import clear_document_cache | ||
|
||
|
||
class ActiveUsersSettings(Document): | ||
@property | ||
def has_update(self): | ||
return 1 if compare_versions(self.latest_version, __version__) > 0 else 0 | ||
|
||
|
||
def before_save(self): | ||
clear_document_cache(self.doctype) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.