Update project.py
This commit is contained in:
parent
6b9543b213
commit
490411ba28
@ -514,6 +514,7 @@ def allow_to_make_project_update(project, time, frequency):
|
||||
data = frappe.db.sql(""" SELECT name from `tabProject Update`
|
||||
WHERE project = %s and date = %s """, (project, today()))
|
||||
|
||||
# len(data) > 1 condition is checked for twicely frequency
|
||||
if data and (frequency in ['Daily', 'Weekly'] or len(data) > 1):
|
||||
return False
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user