mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
fix for new wnf path stuff
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
import webnotes, os, webnotes.utils
|
||||
|
||||
def execute():
|
||||
files_path = webnotes.utils.get_path("public", "files")
|
||||
files_path = webnotes.utils.get_storage_path(webnotes.conf.files_path)
|
||||
webnotes.conn.auto_commit_on_many_writes = 1
|
||||
|
||||
for f in webnotes.conn.sql("""select name, file_name from
|
||||
@@ -14,4 +14,4 @@ def execute():
|
||||
if os.path.exists(filepath):
|
||||
webnotes.conn.set_value("File Data", f.name, "file_size", os.stat(filepath).st_size)
|
||||
|
||||
webnotes.conn.auto_commit_on_many_writes = 0
|
||||
webnotes.conn.auto_commit_on_many_writes = 0
|
||||
|
||||
Reference in New Issue
Block a user