소스 검색

Merge branch 'hotfix'

version-14
mbauskar 8 년 전
부모
커밋
1fe2d626ca
4개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. +1
    -1
      frappe/__init__.py
  2. +1
    -1
      frappe/commands/site.py
  3. +1
    -1
      frappe/email/queue.py
  4. +1
    -1
      frappe/patches/v8_7/update_email_queue_status.py

+ 1
- 1
frappe/__init__.py 파일 보기

@@ -14,7 +14,7 @@ import os, sys, importlib, inspect, json
from .exceptions import *
from .utils.jinja import get_jenv, get_template, render_template, get_email_from_template

__version__ = '8.7.7'
__version__ = '8.7.8'
__title__ = "Frappe Framework"

local = Local()


+ 1
- 1
frappe/commands/site.py 파일 보기

@@ -460,7 +460,7 @@ def _set_limits(context, site, limits):
elif limit=='space':
value = float(value)

elif limit in ('users', 'emails', 'email_group'):
elif limit in ('users', 'emails', 'email_group', 'daily_emails'):
value = int(value)

new_limits[limit] = value


+ 1
- 1
frappe/email/queue.py 파일 보기

@@ -218,7 +218,7 @@ def check_email_limit(recipients):
or frappe.flags.in_test):

monthly_email_limit = frappe.conf.get('limits', {}).get('emails')
daily_email_limit = frappe.conf.get('limits', {}).get('daily_emails')
daily_email_limit = cint(frappe.conf.get('limits', {}).get('daily_emails'))

if frappe.flags.in_test:
monthly_email_limit = 500


+ 1
- 1
frappe/patches/v8_7/update_email_queue_status.py 파일 보기

@@ -7,7 +7,7 @@ def execute():
default_email_account = get_default_outgoing_email_account()

if frappe.conf.get("google_analytics_id") == "UA-8911157-19" or \
default_email_account.email_id == "notifications@erpnext.com":
(default_email_account and default_email_account.email_id == "notifications@erpnext.com"):

frappe.db.sql("""update `tabEmail Queue` set status='Not Sent' where
creation>=DATE_SUB(NOW(), INTERVAL 16 HOUR)""")

불러오는 중...
취소
저장