Skip to content

Commit

Permalink
Minor Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adityaduggal committed Oct 26, 2019
1 parent 4533716 commit 3f04af4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions rigpl_erpnext/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,20 +190,24 @@

scheduler_events = {
"cron": {
"45 * * * *": [
"10 2 * * *": [
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.variant_copy.check_wrong_variants"
#Runs everyday at 2:10 AM
],
"*/16 * * * *":[
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.indiamart.execute"
],
"10 3 * * *": [
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.item_valuation_rate.set_valuation_rate_for_all"
#Runs everyday at 3:10 AM
]
},
"all": [
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.default_permissions.create_defaults"
],
"daily": [
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.permission_check.check_permission_exist",
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.work_order_status.execute",
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.item_valuation_rate.set_valuation_rate_for_all"
"rigpl_erpnext.rigpl_erpnext.scheduled_tasks.work_order_status.execute"

],
"hourly": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def check_items_last_modified():
validate_variants(it_doc, comm_type="backend")
check += check_and_copy_attributes_to_variant(temp_doc, it_doc)

if sno%30 == 0:
if sno%100 == 0:
frappe.db.commit()

def copy_from_template():
Expand Down

0 comments on commit 3f04af4

Please sign in to comment.