[fix] Codacy Issue

This commit is contained in:
Vishal 2017-10-04 16:40:57 +05:30
parent f86984c785
commit 86140c8659
6 changed files with 1 additions and 11 deletions

View File

@ -7,9 +7,6 @@ import frappe
from frappe.website.website_generator import WebsiteGenerator
class Chapter(WebsiteGenerator):
def get_context(self, context):
context.no_cache = True
def enable(self):
chapter = frappe.get_doc('Chapter', frappe.form_dict.name)
chapter.append('members', dict(enable=self.value))

View File

@ -6,7 +6,6 @@ from __future__ import unicode_literals
from frappe.model.document import Document
class ChapterMember(Document):
def get_context(self, context):
context.no_cache = True
pass

View File

@ -8,9 +8,6 @@ from frappe.model.document import Document
from frappe import _
class ChapterMessage(Document):
def get_context(self, context):
context.no_cache = True
def validate(self):
chapter = frappe.get_doc('Chapter', self.chapter)
if frappe.session.user != chapter.chapter_head:

View File

@ -3,7 +3,6 @@
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
class TestChapterMessage(unittest.TestCase):

View File

@ -3,7 +3,6 @@
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe.contacts.address_and_contact import load_address_and_contact

View File

@ -3,7 +3,6 @@
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class MembershipType(Document):