Complete system for getting + saving Product Categories with new database, server, and client architecture.
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -22,4 +22,10 @@ class Helper_App(BaseModel):
|
||||
try:
|
||||
return request.json
|
||||
except:
|
||||
return {}
|
||||
try:
|
||||
return request.data
|
||||
except:
|
||||
try:
|
||||
return request.form
|
||||
except:
|
||||
return {}
|
||||
@@ -35,5 +35,8 @@ class Helper_DB_MySQL(BaseModel):
|
||||
return db
|
||||
|
||||
@staticmethod
|
||||
def create_guid_str():
|
||||
return str(uuid.uuid4())
|
||||
@staticmethod
|
||||
def create_guid():
|
||||
return str(uuid.uuid4())
|
||||
return uuid.uuid4().bytes
|
||||
Reference in New Issue
Block a user