Skip to content

Commit

Permalink
Merge pull request #276 from frappe/develop
Browse files Browse the repository at this point in the history
chore: release
  • Loading branch information
ankush authored Oct 31, 2023
2 parents e584872 + ace843f commit 626d730
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions ecommerce_integrations/shopify/connection.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import base64
import functools
import hashlib
import hmac
import json
Expand All @@ -21,6 +22,7 @@
def temp_shopify_session(func):
"""Any function that needs to access shopify api needs this decorator. The decorator starts a temp session that's destroyed when function returns."""

@functools.wraps(func)
def wrapper(*args, **kwargs):

# no auth in testing
Expand Down
2 changes: 1 addition & 1 deletion ecommerce_integrations/shopify/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
SETTING_DOCTYPE = "Shopify Setting"
OLD_SETTINGS_DOCTYPE = "Shopify Settings"

API_VERSION = "2023-07"
API_VERSION = "2023-04"

WEBHOOK_EVENTS = [
"orders/create",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ shopify.ProductImporter = class {
}

async checkSyncStatus() {

const { message: jobs } = await frappe.db.get_list("RQ Job", {filters: {"status": ("in", ("queued", "started"))}});

const jobs = await frappe.db.get_list("RQ Job", {filters: {"status": ("in", ("queued", "started"))}});
this.syncRunning = jobs.find(job => job.job_name == 'shopify.job.sync.all.products') !== undefined;

if (this.syncRunning) {
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ShopifyAPI==8.2.0 # update after resolving pyjwt conflict in frappe
ShopifyAPI==12.3.0 # update after resolving pyjwt conflict in frappe
boto3~=1.18.65

0 comments on commit 626d730

Please sign in to comment.