mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
[minor] fixed globals and patch for wsgi migration
This commit is contained in:
@@ -75,7 +75,7 @@ def _simulate():
|
||||
|
||||
for i in xrange(runs_for):
|
||||
print current_date.strftime("%Y-%m-%d")
|
||||
webnotes.utils.current_date = current_date
|
||||
webnotes.local.current_date = current_date
|
||||
|
||||
if current_date.weekday() in (5, 6):
|
||||
current_date = webnotes.utils.add_days(current_date, 1)
|
||||
|
||||
@@ -6,8 +6,8 @@ import webnotes, os
|
||||
import utilities.demo.make_demo
|
||||
|
||||
def make_demo_app(site=None):
|
||||
webnotes.flags.mute_emails = 1
|
||||
webnotes.init(site=site)
|
||||
webnotes.flags.mute_emails = 1
|
||||
|
||||
utilities.demo.make_demo.make(reset=True, simulate=False)
|
||||
# setup demo user etc so that the site it up faster, while the data loads
|
||||
|
||||
Reference in New Issue
Block a user